We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 592eb5e commit 52e9b11Copy full SHA for 52e9b11
pandas/conftest.py
@@ -61,8 +61,10 @@ def pytest_runtest_setup(item):
61
"skipping high memory test since --run-high-memory was not set")
62
63
# if "db" not explicitly set in the -m pattern, we skip the db tests
64
- if 'db' in item.keywords:
65
- pattern = item.config.getoption('-m')
+ pattern = item.config.getoption('-m')
+ if 'db' in item.keywords and not pattern:
66
+ pytest.skip('skipping db unless -m "db" is specified')
67
+ elif 'db' in item.keywords and pattern:
68
markers = collections.defaultdict(bool)
69
for marker in item.iter_markers():
70
markers[marker.name] = True
0 commit comments