2.12.2021, 9:00 - 11:00: Due to updates GitLab may be unavailable for some minutes between 09:00 and 11:00.

Commit dc35ffcc authored by di68kap's avatar di68kap
Browse files

- Refakturierung Artikelkopf (halbfertig)

parent 9279507b
......@@ -101,7 +101,7 @@ from DHParser import logging, is_filename, load_if_file, MockParser, \\
remove_nodes, remove_content, remove_brackets, replace_parser, remove_anonymous_tokens, \\
keep_children, is_one_of, not_one_of, has_content, apply_if, remove_first, remove_last, \\
remove_anonymous_empty, keep_nodes, traverse_locally, strip, lstrip, rstrip, \\
replace_content, replace_content_by, recompile_grammar
replace_content, replace_content_by, error_on, recompile_grammar
'''.format(dhparserdir=dhparserdir)
......
......@@ -261,7 +261,7 @@ def get_report(test_unit):
report.append(indent(cst.as_sxpr(compact=True)))
if ast:
report.append('\n### AST')
report.append(indent(ast.as_xml()))
report.append(indent(ast.as_sxpr(compact=True)))
for test_name, test_code in tests.get('fail', dict()).items():
heading = 'Fail-test "%s"' % test_name
report.append('\n%s\n%s\n' % (heading, '-' * len(heading)))
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment