Skip to content

Commit c575703

Browse files
committed
fix sys.platform/sys.implementation.name confusion
1 parent efab757 commit c575703

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

trio/tests/test_ssl.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -111,7 +111,10 @@ def ssl_echo_serve_sync(sock, *, expect_fail=False):
111111
# it's fixed in 'recent' CPython versions so we fail
112112
# the test for those and ignore it for earlier
113113
# versions.
114-
if sys.platform != "cpython" or sys.version_info >= (3, 8):
114+
if (
115+
sys.implementation.name != "cpython"
116+
or sys.version_info >= (3, 8)
117+
):
115118
pytest.fail(
116119
"still an issue on recent python versions "
117120
"add a comment to "

0 commit comments

Comments
 (0)