summaryrefslogtreecommitdiff
path: root/tests/test_collector.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2014-10-10 14:58:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2014-10-10 14:58:03 -0400
commit38c02cc781e8de703cac6df7227e33c4f93c904a (patch)
treec46690d38b26c42dea84196cbec739aa80bf47f1 /tests/test_collector.py
parentbe56604d3c532e507b25c983a4e761a15dc8f9a8 (diff)
downloadpython-coveragepy-38c02cc781e8de703cac6df7227e33c4f93c904a.tar.gz
Move lots of initing to _init, so we can tweak settings before starting.
Diffstat (limited to 'tests/test_collector.py')
-rw-r--r--tests/test_collector.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/tests/test_collector.py b/tests/test_collector.py
index 7bd4beb..5f93138 100644
--- a/tests/test_collector.py
+++ b/tests/test_collector.py
@@ -37,9 +37,8 @@ class CollectorTest(CoverageTest):
# Trace one file, but not the other, and get the debug output.
debug_out = StringIO()
- cov = coverage.coverage(
- include=["f1.py"], debug=['trace'], debug_file=debug_out
- )
+ cov = coverage.coverage(include=["f1.py"], debug=['trace'])
+ cov._debug_file = debug_out
# Import the python file, executing it.
self.start_import_stop(cov, "f2")