From 17e6ca309e07186eed46242b1903a84c9bc5e167 Mon Sep 17 00:00:00 2001 From: Ned Batchelder Date: Fri, 25 Sep 2009 21:47:36 -0400 Subject: XML command writes to coverage.xml, and takes a -o argument to write it somewhere else. --- coverage/control.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'coverage/control.py') 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) -- cgit v1.2.1