diff -r 8912efaa96a8 Lib/test/test_zipfile.py --- a/Lib/test/test_zipfile.py Sun Sep 13 21:09:36 2015 +0300 +++ b/Lib/test/test_zipfile.py Mon Sep 14 09:10:15 2015 +0300 @@ -684,6 +684,11 @@ class PyZipFileTests(unittest.TestCase): 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') + try: + with TemporaryFile(dir=path): + pass + except Exception: + self.skipTest('requires write access to the installed location') def test_write_pyfile(self): self.requiresWriteAccess(os.path.dirname(__file__))