Patchwork D12375: tests: fix formatting issue in run-tests.py after c194e93d1ebc

login
register
mail settings
Submitter phabricator
Date March 14, 2022, 8:33 p.m.
Message ID <differential-rev-PHID-DREV-6lg4nmq6qj4rfaiavwax-req@mercurial-scm.org>
Download mbox | patch
Permalink /patch/50719/
State New
Headers show

Comments

phabricator - March 14, 2022, 8:33 p.m.
spectral created this revision.
Herald added a reviewer: hg-reviewers.
Herald added a subscriber: mercurial-patches.

REPOSITORY
  rHG Mercurial

BRANCH
  default

REVISION DETAIL
  https://phab.mercurial-scm.org/D12375

AFFECTED FILES
  tests/run-tests.py

CHANGE DETAILS




To: spectral, #hg-reviewers
Cc: mercurial-patches, mercurial-devel

Patch

diff --git a/tests/run-tests.py b/tests/run-tests.py
--- a/tests/run-tests.py
+++ b/tests/run-tests.py
@@ -241,8 +241,11 @@ 
     except (socket.error, OSError) as exc:
         if exc.errno == errno.EADDRINUSE:
             return True
-        elif exc.errno in (errno.EADDRNOTAVAIL, errno.EPROTONOSUPPORT,
-                           errno.EAFNOSUPPORT):
+        elif exc.errno in (
+            errno.EADDRNOTAVAIL,
+            errno.EPROTONOSUPPORT,
+            errno.EAFNOSUPPORT,
+        ):
             return False
         else:
             raise