diff options
author | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-01 18:25:06 -0400 |
---|---|---|
committer | Ned Batchelder <ned@nedbatchelder.com> | 2021-05-02 07:38:19 -0400 |
commit | ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712 (patch) | |
tree | 5cd11a9f699ec93711422b00b519d096b1135ff3 /tests/test_templite.py | |
parent | 4c4ba2e0bc9ec663fa3772d2b088f736345a65a1 (diff) | |
download | python-coveragepy-git-ddf5ba8cfcfe7d133ddbf888cc6e3af79863c712.tar.gz |
refactor: pyupgrade --py36-plus tests/**.py
Diffstat (limited to 'tests/test_templite.py')
-rw-r--r-- | tests/test_templite.py | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/tests/test_templite.py b/tests/test_templite.py index 770e97f9..e4d83647 100644 --- a/tests/test_templite.py +++ b/tests/test_templite.py @@ -1,4 +1,3 @@ -# coding: utf-8 # Licensed under the Apache License: http://www.apache.org/licenses/LICENSE-2.0 # For details: https://github.com/nedbat/coveragepy/blob/master/NOTICE.txt @@ -14,7 +13,7 @@ from tests.coveragetest import CoverageTest # pylint: disable=possibly-unused-variable -class AnyOldObject(object): +class AnyOldObject: """Simple testing object. Use keyword arguments in the constructor to set attributes on the object. @@ -289,9 +288,9 @@ class TempliteTest(CoverageTest): def test_non_ascii(self): self.try_render( - u"{{where}} ollǝɥ", - { 'where': u'ǝɹǝɥʇ' }, - u"ǝɹǝɥʇ ollǝɥ" + "{{where}} ollǝɥ", + { 'where': 'ǝɹǝɥʇ' }, + "ǝɹǝɥʇ ollǝɥ" ) def test_exception_during_evaluation(self): |