99a46d
From 1f7c3185124052740814fe5734e8c98f9c54f47c Mon Sep 17 00:00:00 2001
99a46d
From: =?UTF-8?q?Bern=C3=A1t=20G=C3=A1bor?= <gaborjbernat@gmail.com>
99a46d
Date: Wed, 30 Aug 2023 19:01:20 +0200
99a46d
Subject: [PATCH] Fix tests with pluggy 1.2.0+
99a46d
99a46d
Manually cherry-picked from 9f9dc6250fc88e92b1ca6206429966788846d696
99a46d
---
99a46d
 tests/conftest.py | 2 +-
99a46d
 1 file changed, 1 insertion(+), 1 deletion(-)
99a46d
99a46d
diff --git a/tests/conftest.py b/tests/conftest.py
99a46d
index 68924dc..d23b22e 100644
99a46d
--- a/tests/conftest.py
99a46d
+++ b/tests/conftest.py
99a46d
@@ -23,7 +23,7 @@ def pytest_configure(config):
99a46d
     """Ensure randomly is called before we re-order"""
99a46d
     manager = config.pluginmanager
99a46d
     # noinspection PyProtectedMember
99a46d
-    order = manager.hook.pytest_collection_modifyitems._nonwrappers
99a46d
+    order = manager.hook.pytest_collection_modifyitems._hookimpls
99a46d
     dest = next((i for i, p in enumerate(order) if p.plugin is manager.getplugin("randomly")), None)
99a46d
     if dest is not None:
99a46d
         from_pos = next(i for i, p in enumerate(order) if p.plugin is manager.getplugin(__file__))
99a46d
-- 
99a46d
2.40.1
99a46d