Mercurial > public > mercurial-scm > hg-stable
diff tests/common-pattern.py @ 35241:a037b6647d8c
tests: add a substitution for ECONNRESET/WSAECONNRESET messages
author | Matt Harbison <matt_harbison@yahoo.com> |
---|---|
date | Sat, 02 Dec 2017 20:10:58 -0500 |
parents | b33d4cf38666 |
children | 1b22d325089c |
line wrap: on
line diff
--- a/tests/common-pattern.py Sat Dec 02 20:38:23 2017 -0500 +++ b/tests/common-pattern.py Sat Dec 02 20:10:58 2017 -0500 @@ -54,6 +54,13 @@ # FormatMessage(ERROR_PATH_NOT_FOUND) br'The system cannot find the path specified', ), + br'$ECONNRESET$': ( + # strerror() + br'Connection reset by peer', + + # FormatMessage(WSAECONNRESET) + br'An existing connection was forcibly closed by the remote host', + ), } for replace, msgs in _errors.items():