Commit 7a99625e authored by Segev Finer's avatar Segev Finer Committed by Steve Dower

Fix skipping test_UNC_path on AppVeyor due to a different error being raised (#1920)

We get `ERROR_BAD_NETPATH` (53) on AppVeyor which is translated to
ENOENT (2).
parent 523776c3
......@@ -597,7 +597,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
......
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