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 2377a85 commit a74fe18Copy full SHA for a74fe18
tests/resources/httpinfo.py
@@ -38,7 +38,9 @@ class HTTPUnixServer(HTTPServer):
38
args = ap.parse_args()
39
40
if args.unix_socket:
41
- Path(args.unix_socket).unlink(missing_ok=True)
+ unix_socket = Path(args.unix_socket)
42
+ if unix_socket.exists():
43
+ unix_socket.unlink()
44
httpd = HTTPUnixServer(args.unix_socket, EchoRequestInfo)
45
else:
46
httpd = HTTPServer(('127.0.0.1', args.port), EchoRequestInfo)
0 commit comments