diff --git a/hypothesis-health-check.patch b/hypothesis-health-check.patch deleted file mode 100644 index 8c435dd..0000000 --- a/hypothesis-health-check.patch +++ /dev/null @@ -1,46 +0,0 @@ -From fd57e55db1170c029324a7a9c56f86f14468217e Mon Sep 17 00:00:00 2001 -From: Michael Seifert -Date: Mon, 18 Sep 2023 09:50:47 +0200 -Subject: [PATCH] [test] Addresses a Hypothesis health check that leads to - failing tests. - -Class-based tests that inherit a Hypothesis test case emit a Hypothesis health check warning starting from hypothesis-6.83.2 [0][1]. This is due to inherited tests being run by different Hypothesis executors and may cause issues when replaying examples [2]. - -Inheriting Hypothesis tests in subclasses is clearly not wanted, so it makes sense to remove the pytest-asyncio test that tests for this feature. - -[0] https://hypothesis.readthedocs.io/en/latest/changes.html#v6-83-2 -[1] https://github.com/HypothesisWorks/hypothesis/pull/3720 -[2] https://github.com/HypothesisWorks/hypothesis/issues/3446 - -Signed-off-by: Michael Seifert ---- - tests/hypothesis/test_inherited_test.py | 20 -------------------- - 1 file changed, 20 deletions(-) - delete mode 100644 tests/hypothesis/test_inherited_test.py - -diff --git a/tests/hypothesis/test_inherited_test.py b/tests/hypothesis/test_inherited_test.py -deleted file mode 100644 -index a7762264..00000000 ---- a/tests/hypothesis/test_inherited_test.py -+++ /dev/null -@@ -1,20 +0,0 @@ --import hypothesis.strategies as st --import pytest --from hypothesis import given -- -- --class BaseClass: -- @pytest.mark.asyncio -- @given(value=st.integers()) -- async def test_hypothesis(self, value: int) -> None: -- pass -- -- --class TestOne(BaseClass): -- """During the first execution the Hypothesis test -- is wrapped in a synchronous function.""" -- -- --class TestTwo(BaseClass): -- """Execute the test a second time to ensure that -- the test receives a fresh event loop.""" diff --git a/pytest-asyncio-0.21.1.tar.gz b/pytest-asyncio-0.21.1.tar.gz deleted file mode 100644 index 599e53f..0000000 --- a/pytest-asyncio-0.21.1.tar.gz +++ /dev/null @@ -1,3 +0,0 @@ -version https://git-lfs.github.com/spec/v1 -oid sha256:94ab6dc6daba9317682e912686e1570fc500ca6758093ee17d20808cae2a1dbc -size 29240 diff --git a/pytest-asyncio-0.21.2.tar.gz b/pytest-asyncio-0.21.2.tar.gz new file mode 100644 index 0000000..11d6448 --- /dev/null +++ b/pytest-asyncio-0.21.2.tar.gz @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:6ab1c5c0ad8d5aa01d80e51a57b7385fefab4f535bb3db2f6a2a27ad7f59a7c8 +size 29220 diff --git a/python-pytest-asyncio0.21.changes b/python-pytest-asyncio0.21.changes index 9f32bd3..2d4e406 100644 --- a/python-pytest-asyncio0.21.changes +++ b/python-pytest-asyncio0.21.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Nov 13 11:28:01 UTC 2024 - Markéta Machová + +- Update to 0.21.2 + * Fix compatibility with pytest 8.2. + * Addresses a Hypothesis health check that leads to failing tests. +- Drop merged hypothesis-health-check.patch + ------------------------------------------------------------------- Tue Mar 5 09:40:16 UTC 2024 - Ben Greiner diff --git a/python-pytest-asyncio0.21.spec b/python-pytest-asyncio0.21.spec index 6682053..45b93f9 100644 --- a/python-pytest-asyncio0.21.spec +++ b/python-pytest-asyncio0.21.spec @@ -1,7 +1,7 @@ # -# spec file +# spec file for package python-pytest-asyncio0.21 # -# Copyright (c) 2023 SUSE LLC +# Copyright (c) 2024 SUSE LLC # # All modifications and additions to the file contributed by third parties # remain the property of their copyright owners, unless otherwise agreed @@ -26,14 +26,12 @@ %endif %{?sle15_python_module_pythons} Name: python-pytest-asyncio0.21%{psuffix} -Version: 0.21.1 +Version: 0.21.2 Release: 0 Summary: Pytest support for asyncio License: Apache-2.0 URL: https://github.com/pytest-dev/pytest-asyncio Source: https://github.com/pytest-dev/pytest-asyncio/archive/v%{version}.tar.gz#/pytest-asyncio-%{version}.tar.gz -# PATCH-FIX-UPSTREAM https://github.com/pytest-dev/pytest-asyncio/commit/fd57e55db1170c029324a7a9c56f86f14468217e [test] Addresses a Hypothesis health check that leads to failing tests. -Patch: hypothesis-health-check.patch BuildRequires: %{python_module base >= 3.7} BuildRequires: %{python_module pip} BuildRequires: %{python_module setuptools_scm}