diff --git a/testing/test_pluginmanager.py b/testing/test_pluginmanager.py index 4af31d143..72ec5d09c 100644 --- a/testing/test_pluginmanager.py +++ b/testing/test_pluginmanager.py @@ -114,7 +114,7 @@ class TestPytestPluginInteractions: pytester.makepyfile(**{"tests/conftest.py": ""}) conftest = pytester.path.joinpath("tests/conftest.py") - conftest_lower = type(conftest)("TESTS/CONFTEST.PY") + conftest_lower = pytester.path.joinpath("TESTS/conftest.py") mod = config.pluginmanager._importconftest( conftest, importmode="prepend", rootpath=pytester.path