Replace py.path.local usages by pathlib.Path

This commit is contained in:
Bruno Oliveira
2022-10-21 22:09:38 -03:00
parent f04cd22fd6
commit 25cc1a4119
10 changed files with 121 additions and 73 deletions

View File

@@ -3,7 +3,6 @@ import uuid
import sys
from pathlib import Path
import py
import pytest
@@ -165,7 +164,7 @@ def pytest_addoption(parser):
"looponfailroots",
type="paths" if PYTEST_GTE_7 else "pathlist",
help="directories to check for changes",
default=[Path.cwd() if PYTEST_GTE_7 else py.path.local()],
default=[Path.cwd()],
)