Skip to content

Commit 44540e1

Browse files
committed
Remove unnecessary CovFailUnderWarning. Closes #675.
1 parent 204af14 commit 44540e1

File tree

2 files changed

+0
-8
lines changed

2 files changed

+0
-8
lines changed

src/pytest_cov/__init__.py

-6
Original file line numberDiff line numberDiff line change
@@ -27,12 +27,6 @@ class CovReportWarning(PytestCovWarning):
2727
"""
2828

2929

30-
class CovFailUnderWarning(PytestCovWarning):
31-
"""
32-
Indicates that we failed to generate a report.
33-
"""
34-
35-
3630
class CentralCovContextWarning(PytestCovWarning):
3731
"""
3832
Indicates that dynamic_context was set to test_function instead of using the builtin --cov-context.

src/pytest_cov/plugin.py

-2
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
from coverage.results import should_fail_under
1313

1414
from . import CovDisabledWarning
15-
from . import CovFailUnderWarning
1615
from . import CovReportWarning
1716
from . import compat
1817
from . import embed
@@ -352,7 +351,6 @@ def pytest_runtestloop(self, session):
352351
p=cov_precision,
353352
)
354353
session.config.pluginmanager.getplugin('terminalreporter').write(f'\nERROR: {message}\n', red=True, bold=True)
355-
warnings.warn(CovFailUnderWarning(message), stacklevel=1)
356354
# make sure we get the EXIT_TESTSFAILED exit code
357355
compat_session.testsfailed += 1
358356

0 commit comments

Comments
 (0)