Skip to content

Commit

Permalink
- remove condition because python always >= 3.9
Browse files Browse the repository at this point in the history
  • Loading branch information
maycuatroi committed Oct 11, 2024
1 parent a8db822 commit 024023f
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions src/latexify/test_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,10 @@ def assert_ast_equal(observed: ast.AST, expected: ast.AST) -> None:
Raises:
AssertionError: observed and expected represent different ASTs.
"""
indent = 4 if sys.version_info.minor >= 9 else None
assert ast_equal(
observed, expected
), f"AST does not match. observed = {observed}\nexpected = {expected}"
), f"""\
AST does not match.
observed={ast.dump(observed, indent=4)}
expected={ast.dump(expected, indent=4)}
"""

0 comments on commit 024023f

Please sign in to comment.