diff options
| author | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 13:46:20 -0500 |
|---|---|---|
| committer | Ned Batchelder <ned@nedbatchelder.com> | 2015-02-21 13:46:20 -0500 |
| commit | 7fa9cec95bca8db858087e9febbc1b4c581240c1 (patch) | |
| tree | 054c9a8ccd2782478ae97a411c89fd114a24099c | |
| parent | 958b782348c2422f15d7a364083d64fcbe47c04b (diff) | |
| download | python-coveragepy-7fa9cec95bca8db858087e9febbc1b4c581240c1.tar.gz | |
Make the test a little nicer.
| -rw-r--r-- | tests/test_plugins.py | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py index fa8d34e..2d12a3c 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): |
