[Python-checkins] r85995 - python/branches/py3k/Lib/test/test_import.py
benjamin.peterson
python-checkins at python.org
Sun Oct 31 01:04:49 CEST 2010
Author: benjamin.peterson
Date: Sun Oct 31 01:04:49 2010
New Revision: 85995
Log:
condense
Modified:
python/branches/py3k/Lib/test/test_import.py
Modified: python/branches/py3k/Lib/test/test_import.py
==============================================================================
--- python/branches/py3k/Lib/test/test_import.py (original)
+++ python/branches/py3k/Lib/test/test_import.py Sun Oct 31 01:04:49 2010
@@ -36,12 +36,8 @@
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
More information about the Python-checkins
mailing list