Script 'mail_helper' called by obssrc
Hello community,
here is the log from the commit of package python-pytest-asyncio for
openSUSE:Factory checked in at 2023-10-19 22:47:10
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Comparing /work/SRC/openSUSE:Factory/python-pytest-asyncio (Old)
and /work/SRC/openSUSE:Factory/.python-pytest-asyncio.new.1945 (New)
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Package is "python-pytest-asyncio"
Thu Oct 19 22:47:10 2023 rev:16 rq:1118228 version:0.21.1
Changes:
--------
---
/work/SRC/openSUSE:Factory/python-pytest-asyncio/python-pytest-asyncio.changes
2023-07-26 13:21:45.827252110 +0200
+++
/work/SRC/openSUSE:Factory/.python-pytest-asyncio.new.1945/python-pytest-asyncio.changes
2023-10-19 22:49:35.391372802 +0200
@@ -1,0 +2,5 @@
+Tue Oct 17 08:19:39 UTC 2023 - Markéta Machová <[email protected]>
+
+- Add hypothesis-health-check.patch to fix tests
+
+-------------------------------------------------------------------
New:
----
hypothesis-health-check.patch
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
Other differences:
------------------
++++++ python-pytest-asyncio.spec ++++++
--- /var/tmp/diff_new_pack.Ogori2/_old 2023-10-19 22:49:36.155400512 +0200
+++ /var/tmp/diff_new_pack.Ogori2/_new 2023-10-19 22:49:36.155400512 +0200
@@ -32,6 +32,8 @@
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}
@@ -62,7 +64,7 @@
provides useful fixtures and markers to make testing easier.
%prep
-%setup -q -n pytest-asyncio-%{version}
+%autosetup -p1 -n pytest-asyncio-%{version}
%build
export SETUPTOOLS_SCM_PRETEND_VERSION=%{version}
++++++ hypothesis-health-check.patch ++++++
>From fd57e55db1170c029324a7a9c56f86f14468217e Mon Sep 17 00:00:00 2001
From: Michael Seifert <[email protected]>
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 <[email protected]>
---
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."""