diff -r 3e23794b9e1c -r 85c0c7145f8e tests/run-tests.py --- a/tests/run-tests.py Mon Jan 18 00:50:01 2021 -0500 +++ b/tests/run-tests.py Mon Jan 18 01:15:10 2021 -0500 @@ -260,7 +260,9 @@ s.bind(('localhost', port)) return True except socket.error as exc: - if exc.errno not in ( + if os.name == 'nt' and exc.errno == errno.WSAEACCES: + return False + elif exc.errno not in ( errno.EADDRINUSE, errno.EADDRNOTAVAIL, errno.EPROTONOSUPPORT,