From 7fdd0fe48f3f342273c1d396df142b1d4b9a1a5c Mon Sep 17 00:00:00 2001 From: Victor Stinner Date: Sat, 23 Apr 2011 01:24:11 +0200 Subject: [PATCH] Issue #9319: Fix the unit test --- Lib/test/test_imp.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/Lib/test/test_imp.py b/Lib/test/test_imp.py index 6f5b06aa1b..e0f022b142 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): -- 2.50.0