summaryrefslogtreecommitdiff
path: root/tests/test_html.py
diff options
context:
space:
mode:
authorNed Batchelder <ned@nedbatchelder.com>2017-02-21 06:36:54 -0500
committerNed Batchelder <ned@nedbatchelder.com>2017-02-21 06:36:54 -0500
commit0c38af32a0cada8d35671adff86c871d3badb37a (patch)
tree625e8a6a26a78bfef63ed2917536963334491f84 /tests/test_html.py
parent09dd5347e39ab522476767ffee213dd3dd8fe227 (diff)
downloadpython-coveragepy-git-0c38af32a0cada8d35671adff86c871d3badb37a.tar.gz
Use an ISO standard encoding in coding declarations
See https://twitter.com/nedbat/status/833723932658262016 for pedantry.
Diffstat (limited to 'tests/test_html.py')
-rw-r--r--tests/test_html.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/test_html.py b/tests/test_html.py
index ff9ea3b8..9bb8f392 100644
--- a/tests/test_html.py
+++ b/tests/test_html.py
@@ -374,7 +374,7 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest):
self.make_file("main.py", "import sub.not_ascii")
self.make_file("sub/__init__.py")
self.make_file("sub/not_ascii.py", """\
- # coding: utf8
+ # coding: utf-8
a = 1 # Isn't this great?!
""")
cov = coverage.Coverage()
@@ -383,7 +383,7 @@ class HtmlWithUnparsableFilesTest(HtmlTestHelpers, CoverageTest):
# Create the undecodable version of the file. make_file is too helpful,
# so get down and dirty with bytes.
with open("sub/not_ascii.py", "wb") as f:
- f.write(b"# coding: utf8\na = 1 # Isn't this great?\xcb!\n")
+ f.write(b"# coding: utf-8\na = 1 # Isn't this great?\xcb!\n")
with open("sub/not_ascii.py", "rb") as f:
undecodable = f.read()