diff options
-rw-r--r-- | Lib/test/test_imp.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 6f5b06a..e0f022b 100644 --- a/Lib/test/test_imp.py +++ b/Lib/test/test_imp.py @@ -171,7 +171,8 @@ class ImportTests(unittest.TestCase): support.rmtree(test_package_name) def test_issue9319(self): - imp.find_module("test/badsyntax_pep3120") + self.assertRaises(SyntaxError, + imp.find_module, "test/badsyntax_pep3120") class ReloadTests(unittest.TestCase): |