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 00713b3 commit 4d6805fCopy full SHA for 4d6805f
src/pytest_cov/compat.py
@@ -10,8 +10,10 @@
10
11
if hasattr(pytest, 'hookimpl'):
12
hookwrapper = pytest.hookimpl(hookwrapper=True)
13
+ tryfirst = pytest.hookimpl(tryfirst=True)
14
else:
15
hookwrapper = pytest.mark.hookwrapper
16
+ tryfirst = pytest.mark.tryfirst
17
18
19
class SessionWrapper:
src/pytest_cov/plugin.py
@@ -133,7 +133,7 @@ def _prepare_cov_source(cov_source):
133
return None if True in cov_source else [path for path in cov_source if path is not True]
134
135
136
-@pytest.mark.tryfirst
+@compat.tryfirst
137
def pytest_load_initial_conftests(early_config, parser, args):
138
options = early_config.known_args_namespace
139
no_cov = options.no_cov_should_warn = False
0 commit comments