tests/test-run-tests.py
changeset 20273 d9d6cbbeef0d
parent 20271 4453d08a616a
child 20274 7a259dfe24f7
--- a/tests/test-run-tests.py	Thu Jan 16 12:06:49 2014 +0100
+++ b/tests/test-run-tests.py	Thu Jan 16 12:08:29 2014 +0100
@@ -27,7 +27,10 @@
     assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \
            'single backslash or unknown char'
     match = run_tests.linematch(expected, output)
-    return bool(match)
+    if isinstance(match, str):
+        return 'special: ' + match
+    else:
+        return bool(match) # do not return match object
 
 def wintests():
     r"""test matching like running on windows
@@ -48,7 +51,7 @@
 
     missing glob
         >>> lm('/g/c/d/fg\n', '\\g\\c\\d/fg\n')
-        False
+        'special: +glob'
 
     restore os.altsep
         >>> os.altsep = _osaltsep