From: Antoine Pitrou Date: Mon, 25 Apr 2011 19:39:49 +0000 (+0200) Subject: Issue #11919: try to fix test_imp failure on some buildbots. X-Git-Tag: v3.2.1b1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=11846905d33d696f14a4ae26383104feacdc0f17;p=thirdparty%2FPython%2Fcpython.git Issue #11919: try to fix test_imp failure on some buildbots. --- diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index e0f022b14216..551ad1b85cc7 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -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):