We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 88fa4c7 commit 2fb2134Copy full SHA for 2fb2134
1 file changed
Lib/test/test_shutil.py
@@ -1606,12 +1606,7 @@ def test_copyfile_symlink_to_socket(self):
1606
try:
1607
socket_helper.bind_unix_socket(sock, sock_path)
1608
except OSError as e:
1609
- if str(e) == "AF_UNIX path too long":
1610
- self.skipTest(
1611
- "Pathname {0!a} is too long to serve as an AF_UNIX path"
1612
- .format(sock_path))
1613
- else:
1614
- raise
+ self.skipTest(f'cannot bind AF_UNIX socket: {e}')
1615
self.addCleanup(os_helper.unlink, sock_path)
1616
self._check_copyfile_symlink_to_special_file(sock_path)
1617
0 commit comments