- Modify the py311.patch to fix the test_abort_broken test, instead of

disabling.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-benchmark?expand=0&rev=24
This commit is contained in:
2023-01-17 13:05:08 +00:00
committed by Git OBS Bridge
parent cf4c34bdbf
commit 0f2466043a
3 changed files with 20 additions and 21 deletions

View File

@@ -71,9 +71,7 @@ sed -i -e '/test_fast PASSED/d' -e '/test_fast SKIPPED/d' tests/test_benchmark.p
%python_clone -a %{buildroot}%{_bindir}/py.test-benchmark
%check
# gh#ionelmc/pytest-benchmark#231
donttest="test_abort_broken"
%pytest tests -k "not $donttest"
%pytest tests
%post
%{python_install_alternative pytest-benchmark py.test-benchmark}