Skip to content

Commit 5d6d8c9

Browse files
committed
[py] Fix remote test identification
1 parent a00dd10 commit 5d6d8c9

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/conftest.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ def driver(request):
124124
driver_class = get_driver_class(driver_option)
125125

126126
# skip tests in the 'remote' directory if run with a local driver
127-
if "remote" in request.node.fspath.parts and driver_class != "Remote":
127+
if request.node.path.parts[-2] == "remote" and driver_class != "Remote":
128128
pytest.skip(f"Remote tests can't be run with driver '{driver_option}'")
129129

130130
# skip tests that can't run on certain platforms

0 commit comments

Comments
 (0)