diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index f0dc7c2a496..83fcf2259f6 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -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):