summaryrefslogtreecommitdiffstats
path: root/Lib/importlib/test/extension
diff options
context:
space:
mode:
authorBrett Cannon <bcannon@gmail.com>2009-05-11 01:47:11 (GMT)
committerBrett Cannon <bcannon@gmail.com>2009-05-11 01:47:11 (GMT)
commit1262e7c7468b6a92a680161c322a0234b526e3db (patch)
tree810d23e94fd2bf85148588e3ec22caf1b0cf79dd /Lib/importlib/test/extension
parentcc3b8d6883f52391c59f59e82bfa1840e2847d90 (diff)
downloadcpython-1262e7c7468b6a92a680161c322a0234b526e3db.zip
cpython-1262e7c7468b6a92a680161c322a0234b526e3db.tar.gz
cpython-1262e7c7468b6a92a680161c322a0234b526e3db.tar.bz2
Tests for case-senstivity were not being skipped for darwin when installed on a
case-sensitive filesystems -- which is not the default case. Along the way also fixed the skipping of tests when sys.dont_write_bytecode is true. Closes issue #5442 again.
Diffstat (limited to 'Lib/importlib/test/extension')
-rw-r--r--Lib/importlib/test/extension/test_case_sensitivity.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/importlib/test/extension/test_case_sensitivity.py b/Lib/importlib/test/extension/test_case_sensitivity.py
index 2ccec89..3865539 100644
--- a/Lib/importlib/test/extension/test_case_sensitivity.py
+++ b/Lib/importlib/test/extension/test_case_sensitivity.py
@@ -20,13 +20,13 @@ class ExtensionModuleCaseSensitivityTest(unittest.TestCase):
with support.EnvironmentVarGuard() as env:
env.unset('PYTHONCASEOK')
loader = self.find_module()
- self.assert_(loader is None)
+ self.assertIsNone(loader)
def test_case_insensitivity(self):
with support.EnvironmentVarGuard() as env:
env.set('PYTHONCASEOK', '1')
loader = self.find_module()
- self.assert_(hasattr(loader, 'load_module'))
+ self.assertTrue(hasattr(loader, 'load_module'))