diff options
Diffstat (limited to 'coverage/control.py')
-rw-r--r-- | coverage/control.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/coverage/control.py b/coverage/control.py index d04445f8..4fdec930 100644 --- a/coverage/control.py +++ b/coverage/control.py @@ -328,5 +328,7 @@ class coverage: The report is compatible with Cobertura reports. """ + if outfile: + outfile = open(outfile, "w") reporter = XmlReporter(self, ignore_errors) reporter.report(morfs, omit_prefixes=omit_prefixes, outfile=outfile) |