- Add patch remove-yield-test.patch:

* Remove now unsupported yield test.

OBS-URL: https://build.opensuse.org/package/show/devel:languages:python:pytest/python-pytest-sourceorder?expand=0&rev=2
This commit is contained in:
2025-08-26 06:06:09 +00:00
committed by Git OBS Bridge
parent 0256dc4809
commit 431eb4c47f
3 changed files with 23 additions and 2 deletions

View File

@@ -1,3 +1,9 @@
-------------------------------------------------------------------
Tue Aug 26 06:05:32 UTC 2025 - Steve Kowalik <steven.kowalik@suse.com>
- Add patch remove-yield-test.patch:
* Remove now unsupported yield test.
-------------------------------------------------------------------
Wed Sep 01 00:00:00 UTC 2021 - Petr Viktorin <encukou@gmail.com> - 0.6.0
Added support for decorated methods (thanks to Sergey Orlov)

View File

@@ -21,9 +21,10 @@ Version: 0.6.0
Release: 0
Summary: Test-ordering plugin for pytest
License: GPL-3.0-or-later
Group: Development/Languages/Python
URL: https://pagure.io/python-pytest-sourceorder
Source: pytest-sourceorder-%{version}.tar.gz
# PATCH-FIX-OPENSUSE https://pagure.io/python-pytest-sourceorder/issue/3
Patch0: remove-yield-test.patch
BuildRequires: %{python_module pip}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module setuptools}
@@ -70,6 +71,6 @@ reset the inheritance-based ordering.
%license COPYING
%{python_sitelib}/pytest_sourceorder.py
%{python_sitelib}/pytest_sourceorder-%{version}.dist-info
%pycache_only %{python_sitelib}/__pycache__
%pycache_only %{python_sitelib}/__pycache__/pytest_sourceorder.*.pyc
%changelog

14
remove-yield-test.patch Normal file
View File

@@ -0,0 +1,14 @@
Index: pytest-sourceorder-0.6.0/test_sourceorder.py
===================================================================
--- pytest-sourceorder-0.6.0.orig/test_sourceorder.py
+++ pytest-sourceorder-0.6.0/test_sourceorder.py
@@ -69,9 +69,5 @@ class TestUnrelated(object):
def test_b(self):
pass
- def test_nose_generator(self):
- for i in range(2):
- yield (lambda x: i, i)
-
def test_unrelated():
pass