Alex Gaynor 2023-03-17 17:34:15 -04:00 committed by GitHub
parent ed92532ae7
commit 80acb6a54f
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -5,6 +5,7 @@
import json
import os
import platform
import subprocess
import sys
import textwrap
@ -204,8 +205,9 @@ def assert_no_memory_leaks(s, argv=[]):
def skip_if_memtesting_not_supported():
return pytest.mark.skipif(
not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS,
reason="Requires OpenSSL memory functions (>=1.1.0)",
not Binding().lib.Cryptography_HAS_MEM_FUNCTIONS
and platform.python_implementation() != "PyPy",
reason="Requires OpenSSL memory functions (>=1.1.0) and not PyPy",
)