mirror of
https://github.com/python/cpython.git
synced 2025-09-26 10:19:53 +00:00
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
1 changed files with 1 additions and 1 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue