Kaydet (Commit) 87edc5e5 authored tarafından Zachary Ware's avatar Zachary Ware Kaydeden (comit) GitHub

Skip UNC tests on AppVeyor in case of ENOENT (GH-1950)

üst 6a1b89dd
......@@ -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
......
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment