summaryrefslogtreecommitdiff
path: root/tests/test_templite.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/test_templite.py')
-rw-r--r--tests/test_templite.py9
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):