Skip to content

Commit 6c0428b

Browse files
authored
Merge pull request #2039 from graingert/fix-ssl-tests-sys-platform
fix sys.platform/sys.implementation.name confusion
2 parents efab757 + c575703 commit 6c0428b

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)