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 0890d5b commit 07269cfCopy full SHA for 07269cf
tests/test_code_replacement.py
@@ -2733,7 +2733,7 @@ def test_normal():
2733
tree = ast.parse(source)
2734
result = self.remover.visit(tree)
2735
2736
- assert ast.unparse(result) == expected
+ assert ast.dump(result) == ast.dump(ast.parse(expected))
2737
2738
def test_removes_benchmark_methods_from_class(self):
2739
"""Test that benchmark methods are removed from classes."""
0 commit comments