Issue #17753: effective_ids unavailable on Windows.
This commit is contained in:
commit
a9e2c8ecd6
|
@ -680,7 +680,9 @@ class PyZipFileTests(unittest.TestCase):
|
||||||
self.assertIn(name + 'c', namelist)
|
self.assertIn(name + 'c', namelist)
|
||||||
|
|
||||||
def requiresWriteAccess(self, path):
|
def requiresWriteAccess(self, path):
|
||||||
if not os.access(path, os.W_OK, effective_ids=True):
|
# effective_ids unavailable on windows
|
||||||
|
if not os.access(path, os.W_OK,
|
||||||
|
effective_ids=os.access in os.supports_effective_ids):
|
||||||
self.skipTest('requires write access to the installed location')
|
self.skipTest('requires write access to the installed location')
|
||||||
|
|
||||||
def test_write_pyfile(self):
|
def test_write_pyfile(self):
|
||||||
|
|
Loading…
Reference in New Issue