Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
tests/harness/runHarness.py: deduplicate error reporting code.
Also seems to have a performance improvement. This is due to not needing to building up error message strings for tests that pass. assert a == b, foo() Make use of that foo is being called lazily. $ python -m cProfile runHarness.py en-ueb-g2-dictionary_harness.txt ... Ran 99299 tests (99.26% success), with 735 failures and 0 errors. Before refactor: 16618186 function calls (16616268 primitive calls) in 22.915 seconds After refactor: 16127571 function calls (16125653 primitive calls) in 21.783 seconds
- Loading branch information
Showing
1 changed file
with
20 additions
and
42 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters