summaryrefslogtreecommitdiffstats
path: root/Lib
diff options
context:
space:
mode:
authorBerker Peksag <berker.peksag@gmail.com>2015-02-16 02:36:18 (GMT)
committerBerker Peksag <berker.peksag@gmail.com>2015-02-16 02:36:18 (GMT)
commite1efc07a30f4c17723c707ad761bfad538982b0c (patch)
tree172e2d3c7d5ca042082c591a1a2f679e7bceddc7 /Lib
parent4d6c6063bf619ce8c31cf9458209110338db386f (diff)
downloadcpython-e1efc07a30f4c17723c707ad761bfad538982b0c.zip
cpython-e1efc07a30f4c17723c707ad761bfad538982b0c.tar.gz
cpython-e1efc07a30f4c17723c707ad761bfad538982b0c.tar.bz2
Issue #17753: effective_ids unavailable on Windows.
Diffstat (limited to 'Lib')
-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 4633fe6..3d8f9bc 100644
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -649,7 +649,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):