[Python-checkins] cpython (3.4): Issue #17753: effective_ids unavailable on Windows.

berker.peksag python-checkins at python.org
Mon Feb 16 03:36:12 CET 2015


https://hg.python.org/cpython/rev/59716f28ed30
changeset:   94645:59716f28ed30
branch:      3.4
parent:      94643:be1c9482b6af
user:        Berker Peksag <berker.peksag at gmail.com>
date:        Mon Feb 16 04:36:18 2015 +0200
summary:
  Issue #17753: effective_ids unavailable on Windows.

files:
  Lib/test/test_zipfile.py |  4 +++-
  1 files changed, 3 insertions(+), 1 deletions(-)


diff --git a/Lib/test/test_zipfile.py b/Lib/test/test_zipfile.py
--- a/Lib/test/test_zipfile.py
+++ b/Lib/test/test_zipfile.py
@@ -649,7 +649,9 @@
             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):

-- 
Repository URL: https://hg.python.org/cpython


More information about the Python-checkins mailing list