From: Benjamin Peterson Date: Sat, 30 Oct 2010 23:04:49 +0000 (+0000) Subject: condense X-Git-Tag: v3.2a4~246 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=1c87e2943af7eac9971183734fc07190a1a65d65;p=thirdparty%2FPython%2Fcpython.git condense --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 386ec61126be..10b32d35d11a 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -36,12 +36,8 @@ class ImportTests(unittest.TestCase): def test_case_sensitivity(self): # Brief digression to test that import is case-sensitive: if we got # this far, we know for sure that "random" exists. - try: + with self.assertRaises(ImportError): import RAnDoM - except ImportError: - pass - else: - self.fail("import of RAnDoM should have failed (case mismatch)") def test_double_const(self): # Another brief digression to test the accuracy of manifest float