summaryrefslogtreecommitdiff
path: root/tests/goldtest.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2021-10-10 07:24:35 -0400
committerNed Batchelder <ned@nedbatchelder.com>2021-10-10 07:24:35 -0400
commit267622b11b730ec69bf34202fc6258a2614394c5 (patch)
tree2196c4a5b3d740efca14567de2d0fd33f33db44b /tests/goldtest.py
parent498b1484e466588a22cef520095f1fd0ed8b8ff8 (diff)
downloadpython-coveragepy-git-267622b11b730ec69bf34202fc6258a2614394c5.tar.gz
style: use the official designation for utf-8
Yes, this is completely unimportant. Don't ask me why I bothered, I'm not really sure.
Diffstat (limited to 'tests/goldtest.py')
-rw-r--r--tests/goldtest.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/goldtest.py b/tests/goldtest.py
index cd946efb..f2b7fe19 100644
--- a/tests/goldtest.py
+++ b/tests/goldtest.py
@@ -122,7 +122,7 @@ def canonicalize_xml(xtext):
for node in root.iter():
node.attrib = dict(sorted(node.items()))
xtext = xml.etree.ElementTree.tostring(root)
- return xtext.decode('utf8')
+ return xtext.decode("utf-8")
def contains(filename, *strlist):