From 50d056faa4ae653cfa0f4030674904c63a9ffe92 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Tue, 24 Oct 2017 07:01:46 -0400 Subject: Make the warning about --include and --source be a real warning --- coverage/control.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'coverage/control.py') 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. -- cgit v1.2.1