From: Berker Peksag Date: Mon, 16 Feb 2015 02:36:18 +0000 (+0200) Subject: Issue #17753: effective_ids unavailable on Windows. X-Git-Tag: v3.5.0a2~138^2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=e1efc07a30f4c17723c707ad761bfad538982b0c;p=thirdparty%2FPython%2Fcpython.git Issue #17753: effective_ids unavailable on Windows. --- diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py index 4633fe67a59f..3d8f9bc9c7bf 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):