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 ccc442e commit 8ec95cbCopy full SHA for 8ec95cb
py/conftest.py
@@ -15,6 +15,7 @@
15
# specific language governing permissions and limitations
16
# under the License.
17
18
+import os
19
import socket
20
import subprocess
21
import time
@@ -53,7 +54,8 @@ def pytest_addoption(parser):
53
54
55
def pytest_ignore_collect(path, config):
56
_drivers = set(drivers).difference(config.getoption('drivers') or drivers)
- return len([d for d in _drivers if d.lower() in str(path)]) > 0
57
+ parts = path.dirname.split(os.path.sep)
58
+ return len([d for d in _drivers if d.lower() in parts]) > 0
59
60
61
@pytest.fixture(scope='function')
0 commit comments