From: Zachary Ware Date: Sun, 4 Jun 2017 22:45:02 +0000 (-0500) Subject: Skip UNC tests on AppVeyor in case of ENOENT (GH-1950) X-Git-Tag: v2.7.14rc1~117 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=87edc5e5e0b03d9a62ac29f1c4341b88c4c4624f;p=python Skip UNC tests on AppVeyor in case of ENOENT (GH-1950) --- diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py index 9a1fb678c6..9b1d2615e9 100644 --- a/Lib/test/test_import.py +++ b/Lib/test/test_import.py @@ -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 diff --git a/Lib/test/test_tcl.py b/Lib/test/test_tcl.py index 4c2e8d5200..921d094d5a 100644 --- a/Lib/test/test_tcl.py +++ b/Lib/test/test_tcl.py @@ -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