From b9280f2fc15ed711ea16baf4b0bf24804c22076b51414e3a26b2c86de3623535 Mon Sep 17 00:00:00 2001 From: Steve Kowalik Date: Mon, 7 Jul 2025 04:55:36 +0000 Subject: [PATCH] - Add patch support-pytest-8.4.patch: * test cases can no longer call yield. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-py?expand=0&rev=40 --- python-py.changes | 6 ++++++ python-py.spec | 2 ++ support-pytest-8.4.patch | 13 +++++++++++++ 3 files changed, 21 insertions(+) create mode 100644 support-pytest-8.4.patch diff --git a/python-py.changes b/python-py.changes index 767edc3..6e2cbde 100644 --- a/python-py.changes +++ b/python-py.changes @@ -1,3 +1,9 @@ +------------------------------------------------------------------- +Mon Jul 7 04:55:19 UTC 2025 - Steve Kowalik + +- Add patch support-pytest-8.4.patch: + * test cases can no longer call yield. + ------------------------------------------------------------------- Wed May 7 06:46:56 UTC 2025 - Steve Kowalik diff --git a/python-py.spec b/python-py.spec index 7ea831b..6f24d8b 100644 --- a/python-py.spec +++ b/python-py.spec @@ -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} diff --git a/support-pytest-8.4.patch b/support-pytest-8.4.patch new file mode 100644 index 0000000..1bacb0c --- /dev/null +++ b/support-pytest-8.4.patch @@ -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')