We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a00dd10 commit 5d6d8c9Copy full SHA for 5d6d8c9
py/conftest.py
@@ -124,7 +124,7 @@ def driver(request):
124
driver_class = get_driver_class(driver_option)
125
126
# skip tests in the 'remote' directory if run with a local driver
127
- if "remote" in request.node.fspath.parts and driver_class != "Remote":
+ if request.node.path.parts[-2] == "remote" and driver_class != "Remote":
128
pytest.skip(f"Remote tests can't be run with driver '{driver_option}'")
129
130
# skip tests that can't run on certain platforms
0 commit comments