diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-30 17:39:20 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-30 18:03:05 -0400 |
commit | 30c023b5b74f9c798645cbb3f35362ae046a4c25 (patch) | |
tree | e86df1a4c044ec9b2919068297dfd91a382eeb84 /coverage/exceptions.py | |
parent | 22fe2eb167a18dda8fd3e14cbf9166a1c7331fb9 (diff) | |
download | python-coveragepy-git-30c023b5b74f9c798645cbb3f35362ae046a4c25.tar.gz |
feat: warnings are now real warnings
This makes coverage warnings visible when running test suites under
pytest. But it also means some uninteresting warnings would show up in
our own test suite, so we had to catch or suppress those.
Diffstat (limited to 'coverage/exceptions.py')
-rw-r--r-- | coverage/exceptions.py | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/coverage/exceptions.py b/coverage/exceptions.py index ed96fb21..6631e1ad 100644 --- a/coverage/exceptions.py +++ b/coverage/exceptions.py @@ -46,3 +46,8 @@ class StopEverything(BaseCoverageException): """ pass + + +class CoverageWarning(Warning): + """A warning from Coverage.py.""" + pass |