tests/common-pattern.py
changeset 42329 c7652f7440d9
parent 40881 8695fbe17f7c
child 43076 2372284d9457
--- 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',