summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZachary Ware <zachary.ware@gmail.com>2017-06-04 22:45:02 (GMT)
committerGitHub <noreply@github.com>2017-06-04 22:45:02 (GMT)
commit87edc5e5e0b03d9a62ac29f1c4341b88c4c4624f (patch)
tree59b9a5847b5f0f8250e5198f0be88079757fb0a0
parent6a1b89dd13f9cfdb589dfe5e1f728a099b2bc95a (diff)
downloadcpython-87edc5e5e0b03d9a62ac29f1c4341b88c4c4624f.zip
cpython-87edc5e5e0b03d9a62ac29f1c4341b88c4c4624f.tar.gz
cpython-87edc5e5e0b03d9a62ac29f1c4341b88c4c4624f.tar.bz2
Skip UNC tests on AppVeyor in case of ENOENT (GH-1950)
-rw-r--r--Lib/test/test_import.py2
-rw-r--r--Lib/test/test_tcl.py2
2 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_import.py b/Lib/test/test_import.py
index 9a1fb67..9b1d261 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 4c2e8d5..921d094 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