Issue #9319: Fix the unit test

This commit is contained in:
Victor Stinner 2011-04-23 01:24:11 +02:00
parent c68b6aaec8
commit 7fdd0fe48f
1 changed files with 2 additions and 1 deletions

View File

@ -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):