diff options
author | John MacFarlane <jgm@berkeley.edu> | 2014-12-01 12:40:07 -0800 |
---|---|---|
committer | John MacFarlane <jgm@berkeley.edu> | 2014-12-01 12:40:07 -0800 |
commit | 0ba527775f8ea5371d7383d9118153fcb7a67bc3 (patch) | |
tree | 3980bf7b0b15bfd98dcefe0ea0223a1e641e0dfe /test | |
parent | da0d0b693d179d1df02cc967da74fa4a5e58f121 (diff) | |
parent | 35cc2bd25425aa15b6963555da735284f7e72299 (diff) |
Merge pull request #229 from cebe/fixed-python-script
fixed python script
Diffstat (limited to 'test')
-rwxr-xr-x | test/spec_tests.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/test/spec_tests.py b/test/spec_tests.py index 4873632..23ae502 100755 --- a/test/spec_tests.py +++ b/test/spec_tests.py @@ -44,9 +44,9 @@ def do_test(test, normalize): if passed: return 'pass' else: - print_test_header(headertext, example_number,start_line,end_line) + print_test_header(test['section'], test['example'], test['start_line'], test['end_line']) sys.stdout.write(test['markdown']) - expected_html_lines = '\n'.split(expected_html) + expected_html_lines = expected_html.splitlines(True) actual_html_lines = actual_html.splitlines(True) for diffline in unified_diff(expected_html_lines, actual_html_lines, "expected HTML", "actual HTML"): |