mirror of
https://github.com/python/cpython.git
synced 2025-08-03 16:39:00 +00:00
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.
This commit is contained in:
parent
cc3b8d6883
commit
1262e7c746
7 changed files with 46 additions and 45 deletions
|
@ -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'))
|
||||
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue