From b8989ba1639e01b396cd7edd84b4b6530df3c0c2 Mon Sep 17 00:00:00 2001 From: paugier Date: Mon, 26 Aug 2024 16:13:23 +0200 Subject: [PATCH] Fix test_run subpackages.py --- tests/test_run.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/test_run.py b/tests/test_run.py index 201b215..013cc8a 100644 --- a/tests/test_run.py +++ b/tests/test_run.py @@ -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]