Skip to content

Commit

Permalink
Merge pull request #2039 from graingert/fix-ssl-tests-sys-platform
Browse files Browse the repository at this point in the history
fix sys.platform/sys.implementation.name confusion
  • Loading branch information
graingert committed Jun 14, 2021
2 parents efab757 + c575703 commit 6c0428b
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion trio/tests/test_ssl.py
Original file line number Diff line number Diff line change
Expand Up @@ -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 "
Expand Down

0 comments on commit 6c0428b

Please sign in to comment.