commit | 7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c | [log] [tgz] |
---|---|---|
author | Victor Stinner <victor.stinner@haypocalc.com> | Sat Apr 23 01:24:11 2011 +0200 |
committer | Victor Stinner <victor.stinner@haypocalc.com> | Sat Apr 23 01:24:11 2011 +0200 |
tree | 21e2b71a7d29f46fd49f7761c9a5aaeed4c965f2 | |
parent | c68b6aaec8b08caf682ebb7c95f94ddf49a6b66c [diff] |
Issue #9319: Fix the unit test
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 @@ 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):