Skip to content

Commit 5eedea3

Browse files
crazyscientistcrobinso
authored andcommitted
Use non-deprecated argument name in test-suite
1 parent 526e70a commit 5eedea3

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

tests/conftest.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,14 @@ def pytest_addoption(parser):
4242
parser.addoption("--only-xmlrpc", action="store_true", default=False)
4343

4444

45-
def pytest_ignore_collect(path, config):
45+
def pytest_ignore_collect(collection_path, config):
4646
has_ro = config.getoption("--ro-functional")
4747
has_ro_i = config.getoption("--ro-integration")
4848
has_rw = config.getoption("--rw-functional")
4949

50-
base = os.path.basename(str(path))
50+
base = os.path.basename(str(collection_path))
5151
is_ro = base == "test_ro_functional.py"
52-
is_ro_i = "tests/integration/ro" in str(path)
52+
is_ro_i = "tests/integration/ro" in str(collection_path)
5353
is_rw = base == "test_rw_functional.py"
5454

5555
if is_ro_i and not has_ro_i:

0 commit comments

Comments
 (0)