[Python-checkins] cpython (3.2): Issue #9319: Fix the unit test

victor.stinner python-checkins at python.org
Sat Apr 23 01:27:44 CEST 2011


http://hg.python.org/cpython/rev/701069f9888c
changeset:   69530:701069f9888c
branch:      3.2
user:        Victor Stinner <victor.stinner at haypocalc.com>
date:        Sat Apr 23 01:24:11 2011 +0200
summary:
  Issue #9319: Fix the unit test

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

-- 
Repository URL: http://hg.python.org/cpython


More information about the Python-checkins mailing list