- Add fix-tests-hookimpls.patch to fix tests with latest pytest in
Factory. OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-virtualenv?expand=0&rev=138
This commit is contained in:
parent
01cc60728c
commit
ca99656e79
13
fix-tests-hookimpls.patch
Normal file
13
fix-tests-hookimpls.patch
Normal file
@ -0,0 +1,13 @@
|
||||
Index: virtualenv-20.24.5/tests/conftest.py
|
||||
===================================================================
|
||||
--- virtualenv-20.24.5.orig/tests/conftest.py
|
||||
+++ virtualenv-20.24.5/tests/conftest.py
|
||||
@@ -25,7 +25,7 @@ def pytest_configure(config):
|
||||
"""Ensure randomly is called before we re-order"""
|
||||
manager = config.pluginmanager
|
||||
|
||||
- order = manager.hook.pytest_collection_modifyitems._hookimpls # noqa: SLF001
|
||||
+ order = manager.hook.pytest_collection_modifyitems.get_hookimpls() # noqa: SLF001
|
||||
dest = next((i for i, p in enumerate(order) if p.plugin is manager.getplugin("randomly")), None)
|
||||
if dest is not None:
|
||||
from_pos = next(i for i, p in enumerate(order) if p.plugin is manager.getplugin(__file__))
|
@ -1,3 +1,9 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 07:10:17 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
- Add fix-tests-hookimpls.patch to fix tests with latest pytest in
|
||||
Factory.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Oct 3 06:39:58 UTC 2023 - Daniel Garcia <daniel.garcia@suse.com>
|
||||
|
||||
|
@ -34,6 +34,8 @@ Summary: Virtual Python Environment builder
|
||||
License: MIT
|
||||
URL: http://www.virtualenv.org/
|
||||
Source: https://files.pythonhosted.org/packages/source/v/virtualenv/virtualenv-%{version}.tar.gz
|
||||
# PATCH-FIX-OPENSUSE fix-tests-hookimpls.patch
|
||||
Patch1: fix-tests-hookimpls.patch
|
||||
BuildRequires: %{python_module distlib >= 0.3.7}
|
||||
BuildRequires: %{python_module filelock >= 3.12.2}
|
||||
BuildRequires: %{python_module hatch-vcs >= 0.3}
|
||||
|
Loading…
Reference in New Issue
Block a user