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

This commit is contained in:
Antoine Pitrou 2011-04-25 21:46:04 +02:00
commit d4a2ff40d5
1 changed files with 2 additions and 1 deletions

View File

@ -177,8 +177,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):