[Updated] D9816: run-tests: catch a Windows specific error when testing for a free socket
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Mon Jan 18 14:38:42 UTC 2021
Closed by commit rHG85c0c7145f8e: run-tests: catch a Windows specific error when testing for a free socket (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D9816?vs=25098&id=25113
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D9816/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D9816
AFFECTED FILES
tests/run-tests.py
CHANGE DETAILS
diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -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,
To: mharbison72, #hg-reviewers, pulkit
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20210118/35918954/attachment-0002.html>
More information about the Mercurial-patches
mailing list