comparison tests/common-pattern.py @ 35231:b33d4cf38666

tests: add a substitution for ENOTDIR/ERROR_PATH_NOT_FOUND messages
author Matt Harbison <matt_harbison@yahoo.com>
date Sat, 02 Dec 2017 20:38:23 -0500
parents feecfefeba25
children a037b6647d8c
comparison
equal deleted inserted replaced
35230:feecfefeba25 35231:b33d4cf38666
45 br'No such file or directory', 45 br'No such file or directory',
46 46
47 # FormatMessage(ERROR_FILE_NOT_FOUND) 47 # FormatMessage(ERROR_FILE_NOT_FOUND)
48 br'The system cannot find the file specified', 48 br'The system cannot find the file specified',
49 ), 49 ),
50 br'$ENOTDIR$': (
51 # strerror()
52 br'Not a directory',
53
54 # FormatMessage(ERROR_PATH_NOT_FOUND)
55 br'The system cannot find the path specified',
56 ),
50 } 57 }
51 58
52 for replace, msgs in _errors.items(): 59 for replace, msgs in _errors.items():
53 substitutions.extend((m, replace) for m in msgs) 60 substitutions.extend((m, replace) for m in msgs)