]> granicus.if.org Git - python/commitdiff
Issue #11919: try to fix test_imp failure on some buildbots.
authorAntoine Pitrou <solipsis@pitrou.net>
Mon, 25 Apr 2011 19:39:49 +0000 (21:39 +0200)
committerAntoine Pitrou <solipsis@pitrou.net>
Mon, 25 Apr 2011 19:39:49 +0000 (21:39 +0200)
Lib/test/test_imp.py

index e0f022b14216d320f5f1bd6ffb636760ac3ab518..551ad1b85cc7373e56d86e5ad0b3dd091beb5d17 100644 (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):