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
commit99c52f24c5db26a98d77816a3c7ada0f4f7f8797 (patch)
tree4cf881592df4c9f29d834a8530397addbda6693b /tests/test_collector.py
parenta444fdd9bece1c919a9525210399ea4bf21353f2 (diff)
downloadpython-coveragepy-git-99c52f24c5db26a98d77816a3c7ada0f4f7f8797.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 7bd4bebb..5f931385 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")