summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--tests/test_coverage.py2
-rw-r--r--tests/test_html.py4
-rw-r--r--tests/test_process.py2
-rw-r--r--tests/test_summary.py2
-rw-r--r--tests/test_templite.py2
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py
index 34fd9f69..bda61fc6 100644
--- a/tests/test_coverage.py
+++ b/tests/test_coverage.py
@@ -567,7 +567,7 @@ class SimpleStatementTest(CoverageTest):
def test_nonascii(self):
self.check_coverage("""\
- # coding: utf8
+ # coding: utf-8
a = 2
b = 3
""",
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()
diff --git a/tests/test_process.py b/tests/test_process.py
index 78e72f7b..da74d063 100644
--- a/tests/test_process.py
+++ b/tests/test_process.py
@@ -1,4 +1,4 @@
-# coding: utf8
+# coding: utf-8
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
diff --git a/tests/test_summary.py b/tests/test_summary.py
index 8eed08fe..9ade19a5 100644
--- a/tests/test_summary.py
+++ b/tests/test_summary.py
@@ -1,4 +1,4 @@
-# coding: utf8
+# coding: utf-8
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt
diff --git a/tests/test_templite.py b/tests/test_templite.py
index 1df942ee..bcc65f94 100644
--- a/tests/test_templite.py
+++ b/tests/test_templite.py
@@ -1,4 +1,4 @@
-# -*- coding: utf8 -*-
+# coding: utf-8
# Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0
# For details: https://bitbucket.org/ned/coveragepy/src/default/NOTICE.txt