Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbf9c9 commit 1c87e29Copy full SHA for 1c87e29
1 file changed
Lib/test/test_import.py
@@ -36,12 +36,8 @@ def tearDown(self):
36
def test_case_sensitivity(self):
37
# Brief digression to test that import is case-sensitive: if we got
38
# this far, we know for sure that "random" exists.
39
- try:
+ with self.assertRaises(ImportError):
40
import RAnDoM
41
- except ImportError:
42
- pass
43
- else:
44
- self.fail("import of RAnDoM should have failed (case mismatch)")
45
46
def test_double_const(self):
47
# Another brief digression to test the accuracy of manifest float
0 commit comments