We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ddec90b commit 14bc021Copy full SHA for 14bc021
test_on_corpus.py
@@ -10,9 +10,9 @@
10
11
def test_file(path):
12
with open(path) as f:
13
- expected_ast = astpretty.pformat(ast.parse(f.read()), show_position=False)
+ expected_ast = astpretty.pformat(ast.parse(f.read()), show_offsets=False)
14
printer_output = subprocess.check_output(['cargo', 'run', path])
15
- received_ast = astpretty.pformat(ast.parse(printer_output), show_position=False)
+ received_ast = astpretty.pformat(ast.parse(printer_output), show_offsets=False)
16
if expected_ast == received_ast:
17
print('{}: ok'.format(path))
18
return
0 commit comments