summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-04-03 09:54:37 -0400
committerNed Batchelder <ned@nedbatchelder.com>2017-04-03 09:54:37 -0400
commite4587e795ea35931ca603d9573c4498d5276d538 (patch)
tree74e1d2c2e70c55062796e676dfc40909ec3b8706 /tests/test_process.py
parent0ea46fc3a14eff7ee483513a0f72240c808c046c (diff)
downloadpython-coveragepy-git-e4587e795ea35931ca603d9573c4498d5276d538.tar.gz
Add slugs to warnings in prep for suppressable warnings
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 2ecc9122..237bc3c7 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -493,10 +493,10 @@ class ProcessTest(CoverageTest):
self.assertIn("Hello\n", out)
self.assertIn(textwrap.dedent("""\
- Coverage.py warning: Module sys has no Python source.
- Coverage.py warning: Module xyzzy was never imported.
- Coverage.py warning: Module quux was never imported.
- Coverage.py warning: No data was collected.
+ Coverage.py warning: Module sys has no Python source. (module-not-python)
+ Coverage.py warning: Module xyzzy was never imported. (module-not-imported)
+ Coverage.py warning: Module quux was never imported. (module-not-imported)
+ Coverage.py warning: No data was collected. (no-data-collected)
"""), out)
def test_warnings_during_reporting(self):
@@ -663,7 +663,8 @@ class ProcessTest(CoverageTest):
out = self.run_command("python run_twice.py")
self.assertEqual(
out,
- "Coverage.py warning: Module foo was previously imported, but not measured.\n"
+ "Coverage.py warning: Module foo was previously imported, but not measured. "
+ "(module-not-measured)\n"
)
def test_module_name(self):