diff options
author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-14 10:54:49 (GMT) |
---|---|---|
committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-14 10:54:49 (GMT) |
commit | 69598527c7b8c538d75ec1b69c54f317dee0c47a (patch) | |
tree | 9b728069895979b2740c4ca8e05682d27375f005 /Lib/test/test_pathlib.py | |
parent | e43edaad7e2ba2132662267745c73754fc3b2d77 (diff) | |
parent | e88ed05006d4eef73e550149efa5ec11c6336dcc (diff) | |
download | cpython-69598527c7b8c538d75ec1b69c54f317dee0c47a.zip cpython-69598527c7b8c538d75ec1b69c54f317dee0c47a.tar.gz cpython-69598527c7b8c538d75ec1b69c54f317dee0c47a.tar.bz2 |
Issue #28683: Merge 3.6.
Diffstat (limited to 'Lib/test/test_pathlib.py')
-rw-r--r-- | Lib/test/test_pathlib.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/Lib/test/test_pathlib.py b/Lib/test/test_pathlib.py index 65b2d5a..ce1ca15 100644 --- a/Lib/test/test_pathlib.py +++ b/Lib/test/test_pathlib.py @@ -1888,7 +1888,8 @@ class _BasePathTest(object): try: sock.bind(str(P)) except OSError as e: - if "AF_UNIX path too long" in str(e): + if (isinstance(e, PermissionError) or + "AF_UNIX path too long" in str(e)): self.skipTest("cannot bind Unix socket: " + str(e)) self.assertTrue(P.is_socket()) self.assertFalse(P.is_fifo()) |