diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2017-02-21 06:36:54 -0500 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2017-02-21 06:36:54 -0500 |
commit | 65a9b1a16c9b1c38e890213ff7008416cc915158 (patch) | |
tree | 3d79c975113086de4d3d0d554dc4f99769b2af7b | |
parent | 6bad5c1ceda9fa27b27908d9f3499df9ab441bab (diff) | |
download | python-coveragepy-65a9b1a16c9b1c38e890213ff7008416cc915158.tar.gz |
Use an ISO standard encoding in coding declarations
See https://twitter.com/nedbat/status/833723932658262016 for pedantry.
-rw-r--r-- | tests/test_coverage.py | 2 | ||||
-rw-r--r-- | tests/test_html.py | 4 | ||||
-rw-r--r-- | tests/test_process.py | 2 | ||||
-rw-r--r-- | tests/test_summary.py | 2 | ||||
-rw-r--r-- | tests/test_templite.py | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/tests/test_coverage.py b/tests/test_coverage.py index 34fd9f6..bda61fc 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 ff9ea3b..9bb8f39 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 78e72f7..da74d06 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 8eed08f..9ade19a 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 1df942e..bcc65f9 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 |