From c575703c1bf13e9a986503b96672da8d567fc520 Mon Sep 17 00:00:00 2001 From: Thomas Grainger Date: Mon, 14 Jun 2021 19:34:33 +0100 Subject: [PATCH] fix sys.platform/sys.implementation.name confusion --- trio/tests/test_ssl.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/trio/tests/test_ssl.py b/trio/tests/test_ssl.py index 573b6bd690..1a2e66212d 100644 --- a/trio/tests/test_ssl.py +++ b/trio/tests/test_ssl.py @@ -111,7 +111,10 @@ def ssl_echo_serve_sync(sock, *, expect_fail=False): # it's fixed in 'recent' CPython versions so we fail # the test for those and ignore it for earlier # versions. - if sys.platform != "cpython" or sys.version_info >= (3, 8): + if ( + sys.implementation.name != "cpython" + or sys.version_info >= (3, 8) + ): pytest.fail( "still an issue on recent python versions " "add a comment to "