summaryrefslogtreecommitdiff
path: root/tests/test_process.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-26 19:07:03 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-26 19:17:19 -0400
commit93c9ca9f1b2e5d0b45dbf4b82c77aaf05b458bac (patch)
tree6b0e1cc009da5e33ca87e8fb096704b27afe1a8f /tests/test_process.py
parent18cf3b897d4b1e1a66beda180ec151cc0dd4dbc3 (diff)
downloadpython-coveragepy-git-nedbat/dashq.tar.gz
feat: xml and json say what they are doing, and -q quiets everything. #1254nedbat/dashq
Diffstat (limited to 'tests/test_process.py')
-rw-r--r--tests/test_process.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_process.py b/tests/test_process.py
index 10312232..65a6e75d 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -1325,7 +1325,7 @@ class UnicodeFilePathsTest(CoverageTest):
# The XML report is always UTF8-encoded.
out = self.run_command("coverage xml")
- assert out == ""
+ assert out == "Wrote XML report to coverage.xml\n"
with open("coverage.xml", "rb") as xmlf:
xml = xmlf.read()
assert ' filename="h\xe2t.py"'.encode() in xml
@@ -1358,7 +1358,7 @@ class UnicodeFilePathsTest(CoverageTest):
assert expected % os.sep in index
# The XML report is always UTF8-encoded.
- out = self.run_command("coverage xml")
+ out = self.run_command("coverage xml -q")
assert out == ""
with open("coverage.xml", "rb") as xmlf:
xml = xmlf.read()