summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_imp.py
diff options
context:
space:
mode:
authorVictor Stinner <victor.stinner@haypocalc.com>2011-04-22 23:24:11 (GMT)
committerVictor Stinner <victor.stinner@haypocalc.com>2011-04-22 23:24:11 (GMT)
commit7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c (patch)
tree21e2b71a7d29f46fd49f7761c9a5aaeed4c965f2 /Lib/test/test_imp.py
parentc68b6aaec8b08caf682ebb7c95f94ddf49a6b66c (diff)
downloadcpython-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.py3
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):