summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_zipfile.py
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-02-16 02:36:43 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-02-16 02:36:43 (GMT)
commita9e2c8ecd6f332a43d83012db25f685501adc21f (patch)
tree24d21af3c20d0961b834b9f7de948ca415c367a2 /Lib/test/test_zipfile.py
parent5a4addabbf9f7071ffbd79026ee93f6a1d65af76 (diff)
parente1efc07a30f4c17723c707ad761bfad538982b0c (diff)
downloadcpython-a9e2c8ecd6f332a43d83012db25f685501adc21f.zip
cpython-a9e2c8ecd6f332a43d83012db25f685501adc21f.tar.gz
cpython-a9e2c8ecd6f332a43d83012db25f685501adc21f.tar.bz2
Issue #17753: effective_ids unavailable on Windows.
Diffstat (limited to 'Lib/test/test_zipfile.py')
-rw-r--r--Lib/test/test_zipfile.py4
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):