summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2018-08-14 07:32:08 -0400
committerNed Batchelder <ned@nedbatchelder.com>2018-08-14 07:32:08 -0400
commit0341a891a22f29466fd525bc5aa010c5d85bed52 (patch)
tree7a7768dbd05dc76844794fb5eb26a814edc1f846 /tests
parent5997b823da8d60d909e776424d4ba488bb3927ec (diff)
downloadpython-coveragepy-git-0341a891a22f29466fd525bc5aa010c5d85bed52.tar.gz
Refactor initialization
We need the data file suffix when the data file is created, not when write() is called. This required separating how different pieces were initialized. The old way was dumb anyway, since it (for example) created a Collector when reporting.
Diffstat (limited to 'tests')
-rw-r--r--tests/test_plugins.py6
1 files changed, 4 insertions, 2 deletions
diff --git a/tests/test_plugins.py b/tests/test_plugins.py
index 2d0f8426..04eea3df 100644
--- a/tests/test_plugins.py
+++ b/tests/test_plugins.py
@@ -190,7 +190,8 @@ class PluginTest(CoverageTest):
cov = coverage.Coverage(debug=["sys"])
cov._debug_file = debug_out
cov.set_option("run:plugins", ["plugin_sys_info"])
- cov.load()
+ cov.start()
+ cov.stop()
out_lines = [line.strip() for line in debug_out.getvalue().splitlines()]
if env.C_TRACER:
@@ -219,7 +220,8 @@ class PluginTest(CoverageTest):
cov = coverage.Coverage(debug=["sys"])
cov._debug_file = debug_out
cov.set_option("run:plugins", ["plugin_no_sys_info"])
- cov.load()
+ cov.start()
+ cov.stop()
out_lines = [line.strip() for line in debug_out.getvalue().splitlines()]
self.assertIn('plugins.file_tracers: -none-', out_lines)