Skip to content

Commit 87edc5e

Browse files
authored
Skip UNC tests on AppVeyor in case of ENOENT (GH-1950)
1 parent 6a1b89d commit 87edc5e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Lib/test/test_import.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -548,7 +548,7 @@ def _test_UNC_path(self):
548548
try:
549549
os.listdir(unc)
550550
except OSError as e:
551-
if e.errno in (errno.EPERM, errno.EACCES):
551+
if e.errno in (errno.EPERM, errno.EACCES, errno.ENOENT):
552552
# See issue #15338
553553
self.skipTest("cannot access administrative share %r" % (unc,))
554554
raise

Lib/test/test_tcl.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@ def testLoadWithUNC(self):
256256
try:
257257
p = Popen(cmd, stdout=PIPE, stderr=PIPE)
258258
except WindowsError as e:
259-
if e.winerror == 5:
259+
if e.winerror == 5 or e.winerror == 2:
260260
self.skipTest('Not permitted to start the child process')
261261
else:
262262
raise

0 commit comments

Comments
 (0)