From 11846905d33d696f14a4ae26383104feacdc0f17 Mon Sep 17 00:00:00 2001 From: Antoine Pitrou Date: Mon, 25 Apr 2011 21:39:49 +0200 Subject: [PATCH] Issue #11919: try to fix test_imp failure on some buildbots. --- Lib/test/test_imp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index e0f022b1421..551ad1b85cc 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):