diff tests/common-pattern.py @ 35242:1b22d325089c

tests: add a substitution for EADDRINUSE/WSAEADDRINUSE messages I suspect some more of these are globbed out, so this is a bit of future proofing.
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Dec 2017 20:03:28 -0500
parents a037b6647d8c
children f0445eea9b93
line wrap: on
line diff
--- a/tests/common-pattern.py	Sat Dec 02 20:10:58 2017 -0500
+++ b/tests/common-pattern.py	Sat Dec 02 20:03:28 2017 -0500
@@ -61,6 +61,14 @@
         # FormatMessage(WSAECONNRESET)
         br'An existing connection was forcibly closed by the remote host',
     ),
+    br'$EADDRINUSE$': (
+        # strerror()
+        br'Address already in use',
+
+        # FormatMessage(WSAEADDRINUSE)
+        br'Only one usage of each socket address'
+        br' \(protocol/network address/port\) is normally permitted',
+    ),
 }
 
 for replace, msgs in _errors.items():