mirror of
https://github.com/python/cpython.git
synced 2025-09-30 12:21:51 +00:00
[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 7a99625e0d
)
This commit is contained in:
parent
ba6bfcdfb4
commit
7e6d999b6c
1 changed files with 1 additions and 1 deletions
|
@ -567,7 +567,7 @@ class PathsTests(unittest.TestCase):
|
||||||
try:
|
try:
|
||||||
os.listdir(unc)
|
os.listdir(unc)
|
||||||
except OSError as e:
|
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
|
# See issue #15338
|
||||||
self.skipTest("cannot access administrative share %r" % (unc,))
|
self.skipTest("cannot access administrative share %r" % (unc,))
|
||||||
raise
|
raise
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue