diff options
author | Brett Cannon <bcannon@gmail.com> | 2009-05-11 01:47:11 (GMT) |
---|---|---|
committer | Brett Cannon <bcannon@gmail.com> | 2009-05-11 01:47:11 (GMT) |
commit | 1262e7c7468b6a92a680161c322a0234b526e3db (patch) | |
tree | 810d23e94fd2bf85148588e3ec22caf1b0cf79dd /Lib/importlib/test/extension | |
parent | cc3b8d6883f52391c59f59e82bfa1840e2847d90 (diff) | |
download | cpython-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.py | 4 |
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')) |