diff options
author | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-22 23:24:11 (GMT) |
---|---|---|
committer | Victor Stinner <victor.stinner@haypocalc.com> | 2011-04-22 23:24:11 (GMT) |
commit | 7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c (patch) | |
tree | 21e2b71a7d29f46fd49f7761c9a5aaeed4c965f2 /Lib/test/test_imp.py | |
parent | c68b6aaec8b08caf682ebb7c95f94ddf49a6b66c (diff) | |
download | cpython-7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c.zip cpython-7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c.tar.gz cpython-7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c.tar.bz2 |
Issue #9319: Fix the unit test
Diffstat (limited to 'Lib/test/test_imp.py')
-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): |