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.
2 parents c4c42c9 + 065911e commit 6d11931Copy full SHA for 6d11931
src/pytest_cov/plugin.py
@@ -254,10 +254,9 @@ def pytest_runtest_teardown(self, item):
254
self.cov = None
255
256
257
-def pytest_funcarg__cov(request):
258
- """A pytest funcarg that provides access to the underlying coverage
259
- object.
260
- """
+@pytest.fixture
+def cov(request):
+ """A pytest fixture to provide access to the underlying coverage object."""
261
262
# Check with hasplugin to avoid getplugin exception in older pytest.
263
if request.config.pluginmanager.hasplugin('_cov'):
0 commit comments