]> granicus.if.org Git - python/commitdiff
Issue #17753: effective_ids unavailable on Windows.
authorBerker Peksag <berker.peksag@gmail.com>
Mon, 16 Feb 2015 02:36:18 +0000 (04:36 +0200)
committerBerker Peksag <berker.peksag@gmail.com>
Mon, 16 Feb 2015 02:36:18 +0000 (04:36 +0200)
Lib/test/test_zipfile.py

index 4633fe67a59f851d6d7fa225ddf0decaaf687ae1..3d8f9bc9c7bf925d811d08b8287578e266386ab8 100644 (file)
@@ -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):