diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 09:47:51 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 09:47:51 -0500 |
commit | ac6ee8efba781b568aca62e6668e68d091ca3b83 (patch) | |
tree | d2dd59da65d88edbf31d6a7190b3fb2d9ff740fc /tests/test_plugins.py | |
parent | 07bea81b78a72af05cf9df2518ac99542ef19036 (diff) | |
download | python-coveragepy-git-ac6ee8efba781b568aca62e6668e68d091ca3b83.tar.gz |
Oops, test broken by last commit.
Diffstat (limited to 'tests/test_plugins.py')
-rw-r--r-- | tests/test_plugins.py | 10 |
1 files changed, 7 insertions, 3 deletions
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): |