diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-24 07:01:46 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-10-24 07:01:46 -0400 |
commit | 50d056faa4ae653cfa0f4030674904c63a9ffe92 (patch) | |
tree | d323abeb94a009a8879d6bae6fb2e85e9a00d6bd /coverage/control.py | |
parent | 4260c8496541638f531ab13a3e9883948077ff9c (diff) | |
download | python-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.py | 2 |
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. |