mirror of
https://github.com/saymrwulf/cryptography.git
synced 2026-05-14 20:37:55 +00:00
skip memleak tests on pypy (#8540)
See: https://github.com/pyca/cryptography/pull/7933#issuecomment-1471865194 + https://foss.heptapod.net/pypy/pypy/-/issues/3905#note_290457 to understand why
This commit is contained in:
parent
ed92532ae7
commit
80acb6a54f
1 changed files with 4 additions and 2 deletions
|
|
@ -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",
|
||||
)
|
||||
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue