Mercurial > public > mercurial-scm > hg
diff tests/test-run-tests.py @ 21315:56610da39b48
run-tests: make linematch a static method of TTest
linematch only applies to t tests. It makes sense to move everything t
test related to the TTest class.
author | Gregory Szorc <gregory.szorc@gmail.com> |
---|---|
date | Sat, 19 Apr 2014 16:11:49 -0700 |
parents | e1e6ddaef299 |
children | 625dd917f04f |
line wrap: on
line diff
--- a/tests/test-run-tests.py Sat Apr 19 15:37:50 2014 -0700 +++ b/tests/test-run-tests.py Sat Apr 19 16:11:49 2014 -0700 @@ -29,7 +29,7 @@ assert expected.endswith('\n') and output.endswith('\n'), 'missing newline' assert not re.search(r'[^ \w\\/\r\n()*?]', expected + output), \ 'single backslash or unknown char' - match = run_tests.linematch(expected, output) + match = run_tests.TTest.linematch(expected, output) if isinstance(match, str): return 'special: ' + match else: