[packages/python3-pytest-memray] - workaround for x32 segfaults

qboosh qboosh at pld-linux.org
Sun Mar 15 19:50:37 CET 2026


commit efec9e7417848a779ab5ea428381c01e310e8797
Author: Jakub Bogusz <qboosh at pld-linux.org>
Date:   Sun Mar 15 19:50:45 2026 +0100

    - workaround for x32 segfaults

 python3-pytest-memray.spec | 8 +++++++-
 1 file changed, 7 insertions(+), 1 deletion(-)
---
diff --git a/python3-pytest-memray.spec b/python3-pytest-memray.spec
index ab2d4d0..46a5fb1 100644
--- a/python3-pytest-memray.spec
+++ b/python3-pytest-memray.spec
@@ -35,6 +35,7 @@ BuildRequires:	python3-furo >= 2022.12.7
 BuildRequires:	python3-sphinx_argparse >= 0.4
 BuildRequires:	python3-sphinx_inline_tabs >= 2022.1.2
 BuildRequires:	python3-sphinxcontrib-programoutput >= 0.17
+BuildRequires:	python3-towncrier >= 22.12
 BuildRequires:	sphinx-pdg-3 >= 6.1.3
 %endif
 Requires:	python3-modules >= 1:3.8
@@ -66,10 +67,15 @@ Dokumentacja API modułu Pythona pytest-memray.
 
 %if %{with tests}
 # test_memray_report_native[True] fails with current memray/python/???
+fail="test_memray_report_native[True] "
+%if "%{_host_cpu}" == "x32"
+# these tests segfault on x32 (with memray 1.19.2)
+fail="$fail or test_leak_marker or test_leaks_in_current_thread or test_running_async_tests_with_anyio"
+%endif
 PYTEST_DISABLE_PLUGIN_AUTOLOAD=1 \
 PYTEST_PLUGINS=anyio.pytest_plugin,flaky.flaky_pytest_plugin,pytest_memray.plugin,xdist.plugin \
 PYTHONPATH=$(pwd)/src \
-%{__python3} -m pytest tests -k 'not test_memray_report_native[True]'
+%{__python3} -m pytest tests -k "not ($fail)"
 %endif
 
 %if %{with doc}
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/python3-pytest-memray.git/commitdiff/efec9e7417848a779ab5ea428381c01e310e8797



More information about the pld-cvs-commit mailing list