Mercurial > public > mercurial-scm > hg
comparison tests/common-pattern.py @ 35233: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 |
comparison
equal
deleted
inserted
replaced
35232:a037b6647d8c | 35233:1b22d325089c |
---|---|
59 br'Connection reset by peer', | 59 br'Connection reset by peer', |
60 | 60 |
61 # FormatMessage(WSAECONNRESET) | 61 # FormatMessage(WSAECONNRESET) |
62 br'An existing connection was forcibly closed by the remote host', | 62 br'An existing connection was forcibly closed by the remote host', |
63 ), | 63 ), |
64 br'$EADDRINUSE$': ( | |
65 # strerror() | |
66 br'Address already in use', | |
67 | |
68 # FormatMessage(WSAEADDRINUSE) | |
69 br'Only one usage of each socket address' | |
70 br' \(protocol/network address/port\) is normally permitted', | |
71 ), | |
64 } | 72 } |
65 | 73 |
66 for replace, msgs in _errors.items(): | 74 for replace, msgs in _errors.items(): |
67 substitutions.extend((m, replace) for m in msgs) | 75 substitutions.extend((m, replace) for m in msgs) |