Skip to content

Commit

Permalink
skip memleak tests on pypy
Browse files Browse the repository at this point in the history
  • Loading branch information
alex committed Mar 17, 2023
1 parent ed92532 commit ff735d9
Showing 1 changed file with 4 additions and 2 deletions.
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

0 comments on commit ff735d9

Please sign in to comment.