diff 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
line wrap: on
line diff
--- a/tests/common-pattern.py	Sat Dec 02 19:33:34 2017 -0500
+++ b/tests/common-pattern.py	Sat Dec 02 20:38:23 2017 -0500
@@ -47,6 +47,13 @@
         # FormatMessage(ERROR_FILE_NOT_FOUND)
         br'The system cannot find the file specified',
     ),
+    br'$ENOTDIR$': (
+        # strerror()
+        br'Not a directory',
+
+        # FormatMessage(ERROR_PATH_NOT_FOUND)
+        br'The system cannot find the path specified',
+    ),
 }
 
 for replace, msgs in _errors.items():