1. Ned Batchelder
  2. coverage.py

Commits

Ned Batchelder  committed dbe25dc

Make this message simpler and clearer.

  • Participants
  • Parent commits 99468f1
  • Branches default

Comments (0)

Files changed (2)

File coverage/control.py

View file
  • Ignore whitespace
             # If there are still entries in the source_pkgs list, then we never
             # encountered those packages.
             for pkg in self.source_pkgs:
-                self._warn("Source module %s was never encountered." % pkg)
+                self._warn("Module %s was never imported." % pkg)
 
             # Find out if we got any data.
             summary = self.data.summary()

File test/test_process.py

View file
  • Ignore whitespace
         self.assertTrue("Hello\n" in out)
         self.assertTrue(textwrap.dedent("""\
             Coverage.py warning: Module sys has no python source.
-            Coverage.py warning: Source module xyzzy was never encountered.
-            Coverage.py warning: Source module quux was never encountered.
+            Coverage.py warning: Module xyzzy was never imported.
+            Coverage.py warning: Module quux was never imported.
             Coverage.py warning: No data was collected.
             """) in out)