#10 Backport upstream patch needed for compatibility with pytest 8
Merged 2 months ago by fschwarz. Opened 2 months ago by thrnciar.
rpms/ thrnciar/python-responses pytest8  into  rawhide

file added
+43
@@ -0,0 +1,43 @@ 

+ From d5e7402f1782692d04742562370abaca8d54a972 Mon Sep 17 00:00:00 2001

+ From: Mark Story <mark@mark-story.com>

+ Date: Thu, 15 Feb 2024 11:44:21 -0500

+ Subject: [PATCH] Use pytest.mark.asyncio (#707)

+ 

+ * Use pytest.mark.asyncio

+ 

+ This resolved async test failures locally.

+ 

+ Refs #706

+ ---

+  responses/tests/test_registries.py | 3 ++-

+  responses/tests/test_responses.py  | 3 ++-

+  2 files changed, 4 insertions(+), 2 deletions(-)

+ 

+ diff --git a/responses/tests/test_registries.py b/responses/tests/test_registries.py

+ index 2ab035b1..c2c90d97 100644

+ --- a/responses/tests/test_registries.py

+ +++ b/responses/tests/test_registries.py

+ @@ -63,7 +63,8 @@ def run_with_registry():

+      assert_reset()

+  

+  

+ -async def test_registry_async():

+ +@pytest.mark.asyncio

+ +async def test_registry_async():  # type: ignore[misc]

+      class CustomRegistry(registries.FirstMatchRegistry):

+          pass

+  

+ diff --git a/responses/tests/test_responses.py b/responses/tests/test_responses.py

+ index e074f6a9..12176b92 100644

+ --- a/responses/tests/test_responses.py

+ +++ b/responses/tests/test_responses.py

+ @@ -2263,7 +2263,8 @@ def run():

+      assert_reset()

+  

+  

+ -async def test_async_calls():

+ +@pytest.mark.asyncio

+ +async def test_async_calls():  # type: ignore[misc]

+      @responses.activate

+      async def run():

+          responses.add(

file modified
+3
@@ -8,6 +8,9 @@ 

  URL:            https://github.com/getsentry/responses

  Source:         %{pypi_source}

  

+ # compatibility with pytest 8

+ Patch:          https://github.com/getsentry/responses/commit/d5e7402f17.patch

+ 

  BuildArch:      noarch

  BuildRequires:  python3-devel

  # Upstream added various requirements in its "tests" extras which are only

no initial comment

Pull-Request has been merged by fschwarz

2 months ago

thanks - feel free to submit a build if you need one.

Metadata