From 038cbb622be2dd51434b30e5d5f93c9d43688ece Mon Sep 17 00:00:00 2001 From: Vizonex Date: Sun, 25 Oct 2026 20:35:30 -0500 Subject: [PATCH 1/2] mark free-threading mode as skippable --- tests/test_context.py | 1 + 1 file changed, 1 insertion(+) diff --git a/tests/test_context.py b/tests/test_context.py index 4826f6d..8c54b2a 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -405,6 +405,7 @@ async def test(proto, s, **_): self._run_server_test(test, async_sock=True) + @unittest.skipIf(getattr(sys, "_is_gil_enabled", True), "Randomly Freezes in Free Threading mode.") def test_create_ssl_server_connection_protocol(self): async def test(cvar, proto, ssl_sock, **_): def resume_reading(transport): From 5de4bb10b0f8b1e8135774be5b574eb3300ac83c Mon Sep 17 00:00:00 2001 From: Vizonex Date: Sun, 25 Oct 2026 20:42:43 -0500 Subject: [PATCH 2/2] fix up _is_gil_enabled check to where free-threaded is treated as a skip. --- tests/test_context.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/test_context.py b/tests/test_context.py index 8c54b2a..e823afe 100644 --- a/tests/test_context.py +++ b/tests/test_context.py @@ -405,7 +405,7 @@ async def test(proto, s, **_): self._run_server_test(test, async_sock=True) - @unittest.skipIf(getattr(sys, "_is_gil_enabled", True), "Randomly Freezes in Free Threading mode.") + @unittest.skipIf(getattr(sys, "_is_gil_enabled", True) is False, "Randomly Freezes in Free Threading mode.") def test_create_ssl_server_connection_protocol(self): async def test(cvar, proto, ssl_sock, **_): def resume_reading(transport):