Skip to content

Commit 02b338e

Browse files
Add xfail to test_ki_protection_doesnt_leave_cyclic_garbage on Python 3.14
Fixes #3209; works around python/cpython#125603.
1 parent dc340e3 commit 02b338e

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/trio/_core/_tests/test_run.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2817,6 +2817,11 @@ def no_other_refs() -> list[object]:
28172817
sys.implementation.name != "cpython",
28182818
reason="Only makes sense with refcounting GC",
28192819
)
2820+
@pytest.mark.xfail(
2821+
sys.version_info >= (3, 14),
2822+
reason="https://github.com/python/cpython/issues/125603",
2823+
strict=True,
2824+
)
28202825
async def test_ki_protection_doesnt_leave_cyclic_garbage() -> None:
28212826
class MyException(Exception):
28222827
pass

0 commit comments

Comments
 (0)