From b1f669fc922907ae0595be27da97ce9602c81568ecee82f679357b045b079992 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Tue, 26 Nov 2024 13:19:48 +0000 Subject: [PATCH] - Skip tests matching `test_adds_note_showing_which_strategy` (gh#HypothesisWorks/hypothesis#4185). - Add missing BR: rich. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-hypothesis?expand=0&rev=202 --- python-hypothesis.changes | 7 +++++++ python-hypothesis.spec | 4 ++++ 2 files changed, 11 insertions(+) diff --git a/python-hypothesis.changes b/python-hypothesis.changes index 3e555ba..40368f3 100644 --- a/python-hypothesis.changes +++ b/python-hypothesis.changes @@ -1,3 +1,10 @@ +------------------------------------------------------------------- +Mon Nov 25 20:20:07 UTC 2024 - Matej Cepl + +- Skip tests matching `test_adds_note_showing_which_strategy` + (gh#HypothesisWorks/hypothesis#4185). +- Add missing BR: rich. + ------------------------------------------------------------------- Sat Nov 16 16:45:50 UTC 2024 - Matej Cepl diff --git a/python-hypothesis.spec b/python-hypothesis.spec index d6bd66c..094e33a 100644 --- a/python-hypothesis.spec +++ b/python-hypothesis.spec @@ -92,6 +92,7 @@ BuildRequires: %{python_module pexpect} BuildRequires: %{python_module pytest >= 4.6} BuildRequires: %{python_module pytest-xdist} BuildRequires: %{python_module python-dateutil >= 1.4} +BuildRequires: %{python_module rich >= 9.0.0} BuildRequires: %{python_module typing_extensions} %if %{with complete_tests} BuildRequires: %{python_module Django >= 3.2} @@ -206,6 +207,9 @@ hypothesis.settings.register_profile( " >> tests/conftest.py %if %{without complete_tests} export PYTEST_ADDOPTS="--ignore=tests/pandas/ --ignore=tests/redis/test_redis_exampledatabase.py" +# gh#HypothesisWorks/hypothesis#4185 +# pytest < 8.0 doesn't support __notes__ in pytest.raises() +donttest+=" or test_adds_note_showing_which_strategy" %endif %pytest -c pytest.ini -k "not ($donttest)" tests; rm -rf .pytest_cache %endif