tests/test-run-tests.py
changeset 21315 56610da39b48
parent 20284 e1e6ddaef299
child 25061 625dd917f04f
equal deleted inserted replaced
21314:76d7967d8f3d 21315:56610da39b48
    27         single backslash or unknown char
    27         single backslash or unknown char
    28     """
    28     """
    29     assert expected.endswith('\n') and output.endswith('\n'), 'missing newline'
    29     assert expected.endswith('\n') and output.endswith('\n'), 'missing newline'
    30     assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \
    30     assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \
    31            'single backslash or unknown char'
    31            'single backslash or unknown char'
    32     match = run_tests.linematch(expected, output)
    32     match = run_tests.TTest.linematch(expected, output)
    33     if isinstance(match, str):
    33     if isinstance(match, str):
    34         return 'special: ' + match
    34         return 'special: ' + match
    35     else:
    35     else:
    36         return bool(match) # do not return match object
    36         return bool(match) # do not return match object
    37 
    37