summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-10-24 07:01:46 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-10-24 07:01:46 -0400
commit50d056faa4ae653cfa0f4030674904c63a9ffe92 (patch)
treed323abeb94a009a8879d6bae6fb2e85e9a00d6bd /coverage/control.py
parent4260c8496541638f531ab13a3e9883948077ff9c (diff)
downloadpython-coveragepy-git-50d056faa4ae653cfa0f4030674904c63a9ffe92.tar.gz
Make the warning about --include and --source be a real warning
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/coverage/control.py b/coverage/control.py
index e9691b89..33f2ef1d 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -685,7 +685,7 @@ class Coverage(object):
self._init()
if self.include:
if self.source or self.source_pkgs:
- print("--include is ignored because --source is set")
+ self._warn("--include is ignored because --source is set", slug="include-ignored")
if self.run_suffix:
# Calling start() means we're running code, so use the run_suffix
# as the data_suffix when we eventually save the data.