Skip to content

Commit 7e6d999

Browse files
authored
[3.6] Fix skipping test_UNC_path on AppVeyor due to a different error being raised (GH-1920)
We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to ENOENT (2). (cherry picked from commit 7a99625)
1 parent ba6bfcd commit 7e6d999

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Lib/test/test_import/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -567,7 +567,7 @@ def test_UNC_path(self):
567567
try:
568568
os.listdir(unc)
569569
except OSError as e:
570-
if e.errno in (errno.EPERM, errno.EACCES):
570+
if e.errno in (errno.EPERM, errno.EACCES, errno.ENOENT):
571571
# See issue #15338
572572
self.skipTest("cannot access administrative share %r" % (unc,))
573573
raise

0 commit comments

Comments
 (0)