From ac6ee8efba781b568aca62e6668e68d091ca3b83 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Sat, 21 Feb 2015 09:47:51 -0500 Subject: Oops, test broken by last commit. --- tests/test_plugins.py | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'tests') diff --git a/tests/test_plugins.py b/tests/test_plugins.py index f39b0624..fa8d34ef 100644 --- a/tests/test_plugins.py +++ b/tests/test_plugins.py @@ -230,13 +230,17 @@ 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"Plugin file tracers (tests.plugin1) " r"aren't supported with PyTracer" ) - with self.assertRaisesRegex(CoverageException, msg): - self.start_import_stop(cov, "simple") + self.start_import_stop(cov, "simple") + self.assertIn(msg, warnings) class FileTracerTest(CoverageTest): -- cgit v1.2.1