Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

skip memleak tests on pypy #8540

Merged
merged 1 commit into from
Mar 17, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 4 additions & 2 deletions tests/hazmat/backends/test_openssl_memleak.py
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@

import json
import os
import platform
import subprocess
import sys
import textwrap
Expand Down Expand Up @@ -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",
)


Expand Down