From e1efc07a30f4c17723c707ad761bfad538982b0c Mon Sep 17 00:00:00 2001 From: Berker Peksag Date: Mon, 16 Feb 2015 04:36:18 +0200 Subject: Issue #17753: effective_ids unavailable on Windows. --- Lib/test/test_zipfile.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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): -- cgit v0.12