summaryrefslogtreecommitdiff
path: root/tests/test_plugins.py
diff options
context:
space:
mode:
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):