diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index b67ed90..aeca9f7 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -608,6 +608,10 @@ class Coverage(object): For warning suppression, use `slug` as the shorthand. """ + if slug in self.config.disable_warnings: + # Don't issue the warning + return + self._warnings.append(msg) if slug: msg = "%s (%s)" % (msg, slug) |