summaryrefslogtreecommitdiff
path: root/coverage/control.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2009-10-07 05:31:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2009-10-07 05:31:03 -0400
commita7072c02bd2f9f4f5de97be0e85db32265756109 (patch)
tree1229b0de791af41013f66babd0b8ec42d2c463fe /coverage/control.py
parenta3f706683ec93cb8082f4495c6cdaae207950799 (diff)
downloadpython-coveragepy-git-a7072c02bd2f9f4f5de97be0e85db32265756109.tar.gz
Basic plumbing for a --branch option.
Diffstat (limited to 'coverage/control.py')
-rw-r--r--coverage/control.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/coverage/control.py b/coverage/control.py
index ba642e44..8f54a641 100644
--- a/coverage/control.py
+++ b/coverage/control.py
@@ -29,7 +29,7 @@ class coverage:
"""
def __init__(self, data_file=None, data_suffix=False, cover_pylib=False,
- auto_data=False, timid=False):
+ auto_data=False, timid=False, branch=False):
"""Create a new coverage measurement context.
`data_file` is the base name of the data file to use, defaulting to
@@ -65,7 +65,7 @@ class coverage:
# cheap hack, since the rest of the command line arguments aren't
# recognized, but it solves some users' problems.
timid = timid or ('--timid' in os.environ.get('COVERAGE_OPTIONS', ''))
- self.collector = Collector(self._should_trace, timid=timid)
+ self.collector = Collector(self._should_trace, timid=timid, branch=branch)
# Create the data file.
if data_suffix: