From 954556db6d3ce1d99b0b939de261ed1cf3229f21 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Tue, 8 Sep 2026 16:00:25 +0100 Subject: [PATCH 1/3] Bump ast-serialize to 0.11.0 --- mypy-requirements.txt | 2 +- pyproject.toml | 4 ++-- test-requirements.txt | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/mypy-requirements.txt b/mypy-requirements.txt index 61c0570c7c3b..fe578a7a95ca 100644 --- a/mypy-requirements.txt +++ b/mypy-requirements.txt @@ -6,4 +6,4 @@ mypy_extensions>=1.0.0 pathspec>=1.0.0 tomli>=1.1.0; python_version<'3.11' librt>=0.15.0; platform_python_implementation != 'PyPy' -ast-serialize>=0.10.0,<1.0.0 +ast-serialize>=0.11.0,<1.0.0 diff --git a/pyproject.toml b/pyproject.toml index 3647cbd36ca8..4838cc5bfef8 100644 --- a/pyproject.toml +++ b/pyproject.toml @@ -15,7 +15,7 @@ requires = [ "types-psutil", "types-setuptools", # required to work around a mypyc import bug - "ast-serialize>=0.10.0,<1.0.0", + "ast-serialize>=0.11.0,<1.0.0", ] build-backend = "setuptools.build_meta" @@ -59,7 +59,7 @@ dependencies = [ "pathspec>=1.0.0", "tomli>=1.1.0; python_version<'3.11'", "librt>=0.15.0; platform_python_implementation != 'PyPy'", - "ast-serialize>=0.10.0,<1.0.0", + "ast-serialize>=0.11.0,<1.0.0", ] dynamic = ["version"] diff --git a/test-requirements.txt b/test-requirements.txt index 2bc44423f348..e07373584bee 100644 --- a/test-requirements.txt +++ b/test-requirements.txt @@ -4,7 +4,7 @@ # # pip-compile --allow-unsafe --output-file=test-requirements.txt --strip-extras test-requirements.in # -ast-serialize==0.10.0 +ast-serialize==0.11.0 # via -r mypy-requirements.txt attrs==26.1.0 # via -r test-requirements.in From 78cf0b82ebc4cc27b390c8d37fbeaa18b1a0e770 Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Tue, 8 Sep 2026 16:42:34 +0100 Subject: [PATCH 2/3] [WIP] Compare with interpreted mode --- mypyc/test/test_run.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/mypyc/test/test_run.py b/mypyc/test/test_run.py index 868f83654b47..184722882e33 100644 --- a/mypyc/test/test_run.py +++ b/mypyc/test/test_run.py @@ -352,7 +352,9 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> cached_librt = get_librt_path(experimental_features, opt_level=str(opt_level)) shutil.copytree(os.path.join(cached_librt, "librt"), "librt") - if not run_setup(setup_file, ["build_ext", "--inplace"]): + if testcase.name != "testFStrings" and not run_setup( + setup_file, ["build_ext", "--inplace"] + ): if testcase.config.getoption("--mypyc-showc"): show_c(cfiles) copy_output_files(mypyc_output_dir) @@ -360,7 +362,11 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> # Assert that an output file got created suffix = "pyd" if sys.platform == "win32" else "so" - assert glob.glob(f"native.*.{suffix}") or glob.glob(f"native.{suffix}") + assert ( + testcase.name == "testFStrings" + or glob.glob(f"native.*.{suffix}") + or glob.glob(f"native.{suffix}") + ) driver_path = "driver.py" if not os.path.isfile(driver_path): From e42845beaada4e93299486750144da3d95e6d18e Mon Sep 17 00:00:00 2001 From: Ivan Levkivskyi Date: Tue, 8 Sep 2026 16:43:24 +0100 Subject: [PATCH 3/3] Revert "[WIP] Compare with interpreted mode" This reverts commit 78cf0b82ebc4cc27b390c8d37fbeaa18b1a0e770. --- mypyc/test/test_run.py | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/mypyc/test/test_run.py b/mypyc/test/test_run.py index 184722882e33..868f83654b47 100644 --- a/mypyc/test/test_run.py +++ b/mypyc/test/test_run.py @@ -352,9 +352,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> cached_librt = get_librt_path(experimental_features, opt_level=str(opt_level)) shutil.copytree(os.path.join(cached_librt, "librt"), "librt") - if testcase.name != "testFStrings" and not run_setup( - setup_file, ["build_ext", "--inplace"] - ): + if not run_setup(setup_file, ["build_ext", "--inplace"]): if testcase.config.getoption("--mypyc-showc"): show_c(cfiles) copy_output_files(mypyc_output_dir) @@ -362,11 +360,7 @@ def run_case_step(self, testcase: DataDrivenTestCase, incremental_step: int) -> # Assert that an output file got created suffix = "pyd" if sys.platform == "win32" else "so" - assert ( - testcase.name == "testFStrings" - or glob.glob(f"native.*.{suffix}") - or glob.glob(f"native.{suffix}") - ) + assert glob.glob(f"native.*.{suffix}") or glob.glob(f"native.{suffix}") driver_path = "driver.py" if not os.path.isfile(driver_path):