summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2015-02-21 13:46:20 -0500
committerNed Batchelder <ned@nedbatchelder.com>2015-02-21 13:46:20 -0500
commit908ea549ccc6d6aca4f5c936fe5e5257a939901d (patch)
tree80967a5684314c8f389094e6258096c4ad86a706 /tests/test_plugins.py
parentac6ee8efba781b568aca62e6668e68d091ca3b83 (diff)
downloadpython-coveragepy-git-908ea549ccc6d6aca4f5c936fe5e5257a939901d.tar.gz
Make the test a little nicer.
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r--tests/test_plugins.py11
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index fa8d34ef..2d12a3cd 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -230,17 +230,18 @@ class PluginWarningOnPyTracer(CoverageTest):
cov = coverage.Coverage()
cov.config["run:plugins"] = ["tests.plugin1"]
+
warnings = []
def capture_warning(msg):
warnings.append(msg)
cov._warn = capture_warning
- msg = (
- r"Plugin file tracers (tests.plugin1) "
- r"aren't supported with PyTracer"
- )
self.start_import_stop(cov, "simple")
- self.assertIn(msg, warnings)
+ self.assertIn(
+ "Plugin file tracers (tests.plugin1) "
+ "aren't supported with PyTracer",
+ warnings
+ )
class FileTracerTest(CoverageTest):