12
0
forked from pool/python-py

Accepting request 1290938 from devel:languages:python:pytest

- Add patch support-pytest-8.4.patch:
  * test cases can no longer call yield.

OBS-URL: https://build.opensuse.org/request/show/1290938
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-py?expand=0&rev=45
This commit is contained in:
2025-07-08 13:28:00 +00:00
committed by Git OBS Bridge
3 changed files with 21 additions and 0 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Mon Jul 7 04:55:19 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch support-pytest-8.4.patch:
* test cases can no longer call yield.
-------------------------------------------------------------------
Wed May 7 06:46:56 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>

View File

@@ -37,6 +37,8 @@ Source: https://files.pythonhosted.org/packages/source/p/py/py-%{version
Patch0: pr_222.patch
# CVE-2022-42969 Remove all traces of svn
Patch1: remove-svn-remants.patch
# PATCH-FIX-OPENSUSE Support pytest 8.4+ changes
Patch2: support-pytest-8.4.patch
BuildRequires: %{python_module apipkg}
BuildRequires: %{python_module iniconfig}
BuildRequires: %{python_module pip}

13
support-pytest-8.4.patch Normal file
View File

@@ -0,0 +1,13 @@
Index: py-1.11.0/testing/code/test_source.py
===================================================================
--- py-1.11.0.orig/testing/code/test_source.py
+++ py-1.11.0/testing/code/test_source.py
@@ -294,7 +294,7 @@ class TestSourceParsingAndCompiling:
for comp in py.code.compile, py.code.Source.compile:
for name in '', None, 'my':
- yield check, comp, name
+ check(comp, name)
def test_offsetless_synerr(self):
py.test.raises(SyntaxError, py.code.compile, "lambda a,a: 0", mode='eval')