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).
This commit is contained in:
Segev Finer 2017-06-02 19:28:16 +03:00 committed by Steve Dower
parent 523776c341
commit 7a99625e0d
1 changed files with 1 additions and 1 deletions

View File

@ -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