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 e36673c commit 38e7c9aCopy full SHA for 38e7c9a
py/conftest.py
@@ -15,7 +15,6 @@
15
# specific language governing permissions and limitations
16
# under the License.
17
18
-import os
19
import platform
20
import socket
21
import subprocess
@@ -124,8 +123,7 @@ def driver(request):
124
123
driver_class = get_driver_class(driver_option)
125
126
# skip tests in the 'remote' directory if run with a local driver
127
- test_dir_name = os.path.basename(os.path.dirname(request.node.fspath))
128
- if test_dir_name == "remote" and driver_class != "Remote":
+ if "remote" in request.node.fspath.parts and driver_class != "Remote":
129
pytest.skip(f"Remote tests can't be run with driver '{driver_option}'")
130
131
# skip tests that can't run on certain platforms
0 commit comments