mirror of https://github.com/python/cpython
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:
parent
523776c341
commit
7a99625e0d
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue