diff options
author | Segev Finer <segev208@gmail.com> | 2017-06-02 16:28:16 (GMT) |
---|---|---|
committer | Steve Dower <steve.dower@microsoft.com> | 2017-06-02 16:28:16 (GMT) |
commit | 7a99625e0d95cd88ed8842d8677b5beea1fde5ae (patch) | |
tree | 85ede8221acfe26d016d1fdd1d96aceb8a7129ca | |
parent | 523776c3419f6795e78173d53c10e35ec4eed48d (diff) | |
download | cpython-7a99625e0d95cd88ed8842d8677b5beea1fde5ae.zip cpython-7a99625e0d95cd88ed8842d8677b5beea1fde5ae.tar.gz cpython-7a99625e0d95cd88ed8842d8677b5beea1fde5ae.tar.bz2 |
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).
-rw-r--r-- | Lib/test/test_import/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_import/__init__.py b/Lib/test/test_import/__init__.py index be17d6b..a78fae1 100644 --- a/Lib/test/test_import/__init__.py +++ b/Lib/test/test_import/__init__.py @@ -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 |