Try different path constructor

This commit is contained in:
Franck Charras 2023-12-19 14:10:31 +01:00
parent 48aa4b3af2
commit 340ba5b87e
1 changed files with 1 additions and 1 deletions

View File

@ -114,7 +114,7 @@ class TestPytestPluginInteractions:
pytester.makepyfile(**{"tests/conftest.py": ""}) pytester.makepyfile(**{"tests/conftest.py": ""})
conftest = pytester.path.joinpath("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( mod = config.pluginmanager._importconftest(
conftest, importmode="prepend", rootpath=pytester.path conftest, importmode="prepend", rootpath=pytester.path