#3 Minimal patch for compatibility with pytest 8
Opened a month ago by thrnciar. Modified a month ago
rpms/ thrnciar/python-aiohttp-cors pytest8  into  rawhide

@@ -0,0 +1,29 @@ 

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

+ From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Hrn=C4=8Diar?= <thrnciar@redhat.com>

+ Date: Tue, 23 Apr 2024 10:22:17 +0200

+ Subject: [PATCH] Remove the usage of pytest_cmdline_preparse hook removed in

+  pytest 8

+ 

+ ---

+  conftest.py | 8 --------

+  1 file changed, 8 deletions(-)

+ 

+ diff --git a/conftest.py b/conftest.py

+ index 56d32b1..9e5488b 100644

+ --- a/conftest.py

+ +++ b/conftest.py

+ @@ -5,11 +5,3 @@ if False:

+      import logging

+      logging.basicConfig(level=logging.DEBUG)

+  

+ -

+ -def pytest_cmdline_preparse(args):

+ -    if sys.version_info[:2] == (3, 5):

+ -        # Disable pylint on Python 3.5, since it's broken:

+ -        # <https://bitbucket.org/logilab/astroid/issues/187/call-object-has-no-attribute-starargs>

+ -        args[:] = (

+ -            ["-p", "no:pylint"] +

+ -            [arg for arg in args if "pylint" not in arg])

+ -- 

+ 2.44.0

+ 

@@ -21,6 +21,11 @@ 

  # Replace @asyncio.coroutine decorator with async def

  Patch3:         %{url}/pull/412/commits/1eb2226aaf664d0be746753a32f82ee2e04c2f0b.patch

  

+ # pytest 8 compatibility

+ # We don't care about python 3.5 in Fedora, hence just removing

+ # the problematic function

+ Patch4:         Remove-the-usage-of-pytest_cmdline_preparse-hook-rem.patch

+ 

  BuildArch:      noarch

  

  %description

no initial comment

Build succeeded.
https://fedora.softwarefactory-project.io/zuul/buildset/e28bf808a5ac40d281da5a10d4effe3f