Mercurial > public > mercurial-scm > hg
comparison tests/common-pattern.py @ 50292:adecb1ab4a0d stable
tests: add a rewriting step to detect EACCES errors
author | Arseniy Alekseyev <aalekseyev@janestreet.com> |
---|---|
date | Fri, 10 Mar 2023 18:20:19 +0000 |
parents | 45268599f55e |
children | c5e93c915ab6 |
comparison
equal
deleted
inserted
replaced
50291:862969b6c359 | 50292:adecb1ab4a0d |
---|---|
133 br'No such file or directory \(os error 2\)', | 133 br'No such file or directory \(os error 2\)', |
134 # strerror() | 134 # strerror() |
135 br'No such file or directory', | 135 br'No such file or directory', |
136 # FormatMessage(ERROR_FILE_NOT_FOUND) | 136 # FormatMessage(ERROR_FILE_NOT_FOUND) |
137 br'The system cannot find the file specified', | 137 br'The system cannot find the file specified', |
138 ), | |
139 br'$EACCES$': ( | |
140 br'Permission denied \(os error 13\)', | |
141 # strerror | |
142 br'Permission denied', | |
138 ), | 143 ), |
139 br'$ENOTDIR$': ( | 144 br'$ENOTDIR$': ( |
140 # strerror() | 145 # strerror() |
141 br'Not a directory', | 146 br'Not a directory', |
142 # FormatMessage(ERROR_PATH_NOT_FOUND) | 147 # FormatMessage(ERROR_PATH_NOT_FOUND) |