Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 1c87e29

Browse files
committed
condense
1 parent 0bbf9c9 commit 1c87e29

1 file changed

Lines changed: 1 addition & 5 deletions

File tree

Lib/test/test_import.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -36,12 +36,8 @@ def tearDown(self):
3636
def test_case_sensitivity(self):
3737
# Brief digression to test that import is case-sensitive: if we got
3838
# this far, we know for sure that "random" exists.
39-
try:
39+
with self.assertRaises(ImportError):
4040
import RAnDoM
41-
except ImportError:
42-
pass
43-
else:
44-
self.fail("import of RAnDoM should have failed (case mismatch)")
4541

4642
def test_double_const(self):
4743
# Another brief digression to test the accuracy of manifest float

0 commit comments

Comments
 (0)