From 7a0dff8c37f71ed797e0839e8323411d844205bd Mon Sep 17 00:00:00 2001 From: "Benjamin A. Beasley" Date: Tue, 15 Mar 2022 15:28:13 -0400 Subject: [PATCH] Fix pytest 7.x compatibility pytest.collect.File was moved to pytest.File in pytest 7 It turns out that pytest.File was already available in all versions of pytest this project claims to support, so the change is backwards-compatible. --- tests/conftest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/conftest.py b/tests/conftest.py index d24b23c..466a080 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -6,7 +6,7 @@ import pytest -class DummyCollector(pytest.collect.File): +class DummyCollector(pytest.File): def collect(self): return []