Skip to content

Commit 07269cf

Browse files
committed
fix test
1 parent 0890d5b commit 07269cf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_code_replacement.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2733,7 +2733,7 @@ def test_normal():
27332733
tree = ast.parse(source)
27342734
result = self.remover.visit(tree)
27352735

2736-
assert ast.unparse(result) == expected
2736+
assert ast.dump(result) == ast.dump(ast.parse(expected))
27372737

27382738
def test_removes_benchmark_methods_from_class(self):
27392739
"""Test that benchmark methods are removed from classes."""

0 commit comments

Comments
 (0)