]> granicus.if.org Git - python/commitdiff
Skip UNC tests on AppVeyor in case of ENOENT (GH-1950)
authorZachary Ware <zachary.ware@gmail.com>
Sun, 4 Jun 2017 22:45:02 +0000 (17:45 -0500)
committerGitHub <noreply@github.com>
Sun, 4 Jun 2017 22:45:02 +0000 (17:45 -0500)
Lib/test/test_import.py
Lib/test/test_tcl.py

index 9a1fb678c6124cffa1426981c7496bd98ede3f40..9b1d2615e9ef6451cc8387c2b0a00b9eafce9c60 100644 (file)
@@ -548,7 +548,7 @@ class PathsTests(unittest.TestCase):
         try:
             os.listdir(unc)
         except OSError as e:
-            if e.errno in (errno.EPERM, errno.EACCES):
+            if e.errno in (errno.EPERM, errno.EACCES, errno.ENOENT):
                 # See issue #15338
                 self.skipTest("cannot access administrative share %r" % (unc,))
             raise
index 4c2e8d5200c480c71d3d232139b311827f562baf..921d094d5a78fea878841f3709ac3d7708114eba 100644 (file)
@@ -256,7 +256,7 @@ class TclTest(unittest.TestCase):
             try:
                 p = Popen(cmd, stdout=PIPE, stderr=PIPE)
             except WindowsError as e:
-                if e.winerror == 5:
+                if e.winerror == 5 or e.winerror == 2:
                     self.skipTest('Not permitted to start the child process')
                 else:
                     raise