diff options
| author | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-14 11:54:49 +0100 |
|---|---|---|
| committer | Xavier de Gaye <xdegaye@users.sourceforge.net> | 2016-12-14 11:54:49 +0100 |
| commit | 69598527c7b8c538d75ec1b69c54f317dee0c47a (patch) | |
| tree | 9b728069895979b2740c4ca8e05682d27375f005 /Lib/test/test_pathlib.py | |
| parent | e43edaad7e2ba2132662267745c73754fc3b2d77 (diff) | |
| parent | e88ed05006d4eef73e550149efa5ec11c6336dcc (diff) | |
| download | cpython-git-69598527c7b8c538d75ec1b69c54f317dee0c47a.tar.gz | |
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 65b2d5abda..ce1ca153ed 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()) |
