Skip to content

Commit

Permalink
Fix test_run subpackages.py
Browse files Browse the repository at this point in the history
  • Loading branch information
paugier committed Aug 26, 2024
1 parent 714474e commit b8989ba
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/test_run.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,9 +58,9 @@ def test_create_pythran_files():
with open(saved_path) as file:
saved_code = file.read()

if sys.version_info[:2] > (3, 10):
if sys.version_info[:2] < (3, 11):
if path.name == "subpackages.py":
saved_code = saved_code.replace("(nx, ny) =", "nx, ny =")
saved_code = saved_code.replace("nx, ny =", "(nx, ny) =")

code = code.split("def __transonic__():", 1)[0]
saved_code = saved_code.split("def __transonic__()", 1)[0]
Expand Down

0 comments on commit b8989ba

Please sign in to comment.