tests/test-run-tests.py
changeset 33695 eeed23508383
parent 28917 f798ffe7cb08
child 33710 2e43c5cd57a7
equal deleted inserted replaced
33694:93422d0068f8 33695:eeed23508383
    37     """
    37     """
    38     assert (expected.endswith(b'\n')
    38     assert (expected.endswith(b'\n')
    39             and output.endswith(b'\n')), 'missing newline'
    39             and output.endswith(b'\n')), 'missing newline'
    40     assert not re.search(br'[^ \w\\/\r\n()*?]', expected + output), \
    40     assert not re.search(br'[^ \w\\/\r\n()*?]', expected + output), \
    41            b'single backslash or unknown char'
    41            b'single backslash or unknown char'
    42     match = run_tests.TTest.linematch(expected, output)
    42     test = run_tests.TTest('test-run-test.t', '.', '.')
       
    43     match = test.linematch(expected, output)
    43     if isinstance(match, str):
    44     if isinstance(match, str):
    44         return 'special: ' + match
    45         return 'special: ' + match
    45     elif isinstance(match, bytes):
    46     elif isinstance(match, bytes):
    46         return 'special: ' + match.decode('utf-8')
    47         return 'special: ' + match.decode('utf-8')
    47     else:
    48     else: