tests/common-pattern.py
changeset 35232 a037b6647d8c
parent 35231 b33d4cf38666
child 35233 1b22d325089c
equal deleted inserted replaced
35231:b33d4cf38666 35232:a037b6647d8c
    52         br'Not a directory',
    52         br'Not a directory',
    53 
    53 
    54         # FormatMessage(ERROR_PATH_NOT_FOUND)
    54         # FormatMessage(ERROR_PATH_NOT_FOUND)
    55         br'The system cannot find the path specified',
    55         br'The system cannot find the path specified',
    56     ),
    56     ),
       
    57     br'$ECONNRESET$': (
       
    58         # strerror()
       
    59         br'Connection reset by peer',
       
    60 
       
    61         # FormatMessage(WSAECONNRESET)
       
    62         br'An existing connection was forcibly closed by the remote host',
       
    63     ),
    57 }
    64 }
    58 
    65 
    59 for replace, msgs in _errors.items():
    66 for replace, msgs in _errors.items():
    60     substitutions.extend((m, replace) for m in msgs)
    67     substitutions.extend((m, replace) for m in msgs)