diff options
-rw-r--r-- | Lib/test/test_zipfile.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index 017c646..f458f30 100644 --- a/Lib/test/test_zipfile.py +++ b/Lib/test/test_zipfile.py @@ -680,7 +680,9 @@ class PyZipFileTests(unittest.TestCase): self.assertIn(name + 'c', namelist) 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') def test_write_pyfile(self): |