summaryrefslogtreecommitdiff
path: root/tests/helpers.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/helpers.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/helpers.py')
-rw-r--r--tests/helpers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/helpers.py b/tests/helpers.py
index 28adf78c..c85a36cb 100644
--- a/tests/helpers.py
+++ b/tests/helpers.py
@@ -69,7 +69,7 @@ def make_file(filename, text="", bytes=b"", newline=None):
text = textwrap.dedent(text)
if newline:
text = text.replace("\n", newline)
- data = text.encode('utf8')
+ data = text.encode("utf-8")
# Make sure the directories are available.
dirs, _ = os.path.split(filename)