Mercurial > public > mercurial-scm > hg-stable
diff tests/common-pattern.py @ 42351:c7652f7440d9
rust-filepatterns: call new Rust implementations from Python
This change adds the import to the `rust-cpython` bindings and uses
them when appropriate.
A wrapper function has been defined in the case of `_regex` to
keep this patch simple.
Differential Revision: https://phab.mercurial-scm.org/D6273
author | Rapha?l Gom?s <rgomes@octobus.net> |
---|---|
date | Fri, 17 May 2019 09:36:29 -0400 |
parents | 8695fbe17f7c |
children | 2372284d9457 |
line wrap: on
line diff
--- a/tests/common-pattern.py Fri May 17 09:36:29 2019 -0400 +++ b/tests/common-pattern.py Fri May 17 09:36:29 2019 -0400 @@ -115,6 +115,11 @@ # Various platform error strings, keyed on a common replacement string _errors = { br'$ENOENT$': ( + # IOError in Python does not have the same error message + # than in Rust, and automatic conversion is not possible + # because of module member privacy. + br'No such file or directory \(os error 2\)', + # strerror() br'No such file or directory',