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 | 958b782348c2422f15d7a364083d64fcbe47c04b (patch) | |
tree | 6fee25ecf4f4e8ca5b352bcd74cd09abca11816d | |
parent | ea1243c8d690d37054a2b681c62b17133741add7 (diff) | |
download | python-coveragepy-958b782348c2422f15d7a364083d64fcbe47c04b.tar.gz |
Oops, test broken by last commit.
-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 f39b062..fa8d34e 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): |