From 78f6efba5a72585a20913ff6079f64e8f0f152ff Mon Sep 17 00:00:00 2001 From: A5rocks Date: Fri, 5 Dec 2025 13:06:21 -0500 Subject: [PATCH 1/3] We don't care about PyPy + mypy anymore --- src/trio/_tests/test_exports.py | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/src/trio/_tests/test_exports.py b/src/trio/_tests/test_exports.py index 10d71a9ff..abc50210d 100644 --- a/src/trio/_tests/test_exports.py +++ b/src/trio/_tests/test_exports.py @@ -365,17 +365,6 @@ def lookup_symbol(symbol: str) -> dict[str, Any]: # type: ignore[misc, explicit ignore_names.add("__firstlineno__") ignore_names.add("__static_attributes__") - # pypy seems to have some additional dunders that differ - if sys.implementation.name == "pypy": - ignore_names |= { - "__basicsize__", - "__dictoffset__", - "__itemsize__", - "__sizeof__", - "__weakrefoffset__", - "__unicode__", - } - # inspect.getmembers sees `name` and `value` in Enums, otherwise # it behaves the same way as `dir` # runtime_names = no_underscores(dir(class_)) From 5651d93ecc52255543a181d05328f0ea373d4f60 Mon Sep 17 00:00:00 2001 From: A5rocks Date: Fri, 5 Dec 2025 13:07:13 -0500 Subject: [PATCH 2/3] Avoid segfault --- src/trio/_core/_tests/test_run.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/trio/_core/_tests/test_run.py b/src/trio/_core/_tests/test_run.py index 9b059a436..f99b6e1ad 100644 --- a/src/trio/_core/_tests/test_run.py +++ b/src/trio/_core/_tests/test_run.py @@ -1060,9 +1060,10 @@ async def main() -> None: # This segfaults, so we need to skipif. Remember to remove the skipif once # the upstream issue is resolved. +# TODO: point out this still segfaults @restore_unraisablehook() @pytest.mark.skipif( - sys.version_info[:3] == (3, 14, 0), + sys.version_info[:2] == (3, 14), reason="https://github.com/python/cpython/issues/133932", ) def test_error_in_run_loop() -> None: From 7d9ba6d085381b80e3f69a69ea84b6e9f456717f Mon Sep 17 00:00:00 2001 From: A5rocks Date: Sat, 6 Dec 2025 03:16:54 +0900 Subject: [PATCH 3/3] Update src/trio/_core/_tests/test_run.py --- src/trio/_core/_tests/test_run.py | 1 - 1 file changed, 1 deletion(-) diff --git a/src/trio/_core/_tests/test_run.py b/src/trio/_core/_tests/test_run.py index f99b6e1ad..45ea21cdd 100644 --- a/src/trio/_core/_tests/test_run.py +++ b/src/trio/_core/_tests/test_run.py @@ -1060,7 +1060,6 @@ async def main() -> None: # This segfaults, so we need to skipif. Remember to remove the skipif once # the upstream issue is resolved. -# TODO: point out this still segfaults @restore_unraisablehook() @pytest.mark.skipif( sys.version_info[:2] == (3, 14),