From 340ba5b87e85ec41520edf608a0e70b1ef35e991 Mon Sep 17 00:00:00 2001 From: Franck Charras <29153872+fcharras@users.noreply.github.com> Date: Tue, 19 Dec 2023 14:10:31 +0100 Subject: [PATCH] Try different path constructor --- testing/test_pluginmanager.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/testing/test_pluginmanager.py b/testing/test_pluginmanager.py index b01d36d1a..4af31d143 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 = pytester.path.joinpath("TESTS/CONFTEST.PY") + conftest_lower = type(conftest)("TESTS/CONFTEST.PY") mod = config.pluginmanager._importconftest( conftest, importmode="prepend", rootpath=pytester.path