equal
deleted
inserted
replaced
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: |