diff --git a/examples/rustapi_module/tests/test_buf_and_str.py b/examples/rustapi_module/tests/test_buf_and_str.py index 681257a5..94538865 100644 --- a/examples/rustapi_module/tests/test_buf_and_str.py +++ b/examples/rustapi_module/tests/test_buf_and_str.py @@ -1,8 +1,17 @@ import os +import platform import psutil +import pytest from rustapi_module.buf_and_str import BytesExtractor +PYPY = platform.python_implementation() == "PyPy" + +@pytest.mark.skipif( + PYPY, + reason="PyPy has a segfault bug around this area." + "See https://github.com/PyO3/pyo3/issues/589 for detail.", +) def test_pybuffer_doesnot_leak_memory(): N = 1000 extractor = BytesExtractor()