Issue #11919: try to fix test_imp failure on some buildbots.

This commit is contained in:
Antoine Pitrou 2011-04-25 21:39:49 +02:00
parent 72562d065e
commit 11846905d3

View File

@ -171,8 +171,9 @@ class ImportTests(unittest.TestCase):
support.rmtree(test_package_name)
def test_issue9319(self):
path = os.path.dirname(__file__)
self.assertRaises(SyntaxError,
imp.find_module, "test/badsyntax_pep3120")
imp.find_module, "badsyntax_pep3120", [path])
class ReloadTests(unittest.TestCase):