Avoid soft-deprecated pathlist ini type on pytest>=7

This allows the test suite to succeed with the legacypath plugin
blocked.

Fix #722.
This commit is contained in:
Ran Benita
2021-10-30 20:13:32 +03:00
parent d794b27e72
commit ae58690f3e
4 changed files with 12 additions and 7 deletions

View File

@@ -38,7 +38,7 @@ def pytest_cmdline_main(config):
def looponfail_main(config):
remotecontrol = RemoteControl(config)
rootdirs = config.getini("looponfailroots")
rootdirs = [py.path.local(root) for root in config.getini("looponfailroots")]
statrecorder = StatRecorder(rootdirs)
try:
while 1: