aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rw-r--r--test/templates/chs_unicode_py3k.html1
-rw-r--r--test/templates/chs_utf8.html1
-rw-r--r--test/templates/unicode_arguments.html1
-rw-r--r--test/templates/unicode_arguments_py3k.html1
-rw-r--r--test/test_template.py8
5 files changed, 3 insertions, 9 deletions
diff --git a/test/templates/chs_unicode_py3k.html b/test/templates/chs_unicode_py3k.html
index e4b6a8f..1ee49cc 100644
--- a/test/templates/chs_unicode_py3k.html
+++ b/test/templates/chs_unicode_py3k.html
@@ -1,4 +1,3 @@
-## -*- coding:utf-8 -*-
<%
msg = '新中国的主席'
%>
diff --git a/test/templates/chs_utf8.html b/test/templates/chs_utf8.html
index 5f4733f..50886be 100644
--- a/test/templates/chs_utf8.html
+++ b/test/templates/chs_utf8.html
@@ -1,4 +1,3 @@
-## -*- coding:utf-8 -*-
<%
msg = '新中国的主席'
%>
diff --git a/test/templates/unicode_arguments.html b/test/templates/unicode_arguments.html
index b363cb6..e6d7c2c 100644
--- a/test/templates/unicode_arguments.html
+++ b/test/templates/unicode_arguments.html
@@ -1,4 +1,3 @@
-# coding: utf-8
<%def name="my_def(x)">
x is: ${x}
diff --git a/test/templates/unicode_arguments_py3k.html b/test/templates/unicode_arguments_py3k.html
index 47d918a..871517b 100644
--- a/test/templates/unicode_arguments_py3k.html
+++ b/test/templates/unicode_arguments_py3k.html
@@ -1,4 +1,3 @@
-# coding: utf-8
<%def name="my_def(x)">
x is: ${x}
diff --git a/test/test_template.py b/test/test_template.py
index 89e5a61..40fd10c 100644
--- a/test/test_template.py
+++ b/test/test_template.py
@@ -541,9 +541,7 @@ quand une drôle de petite voix m’a réveillé. Elle disait:
# won't read the file even with open(...encoding='utf-8') unless
# errors is specified. or if there's some quirk in 3.1.2
# since I'm pretty sure this test worked with py3k when I wrote it.
- template.render(
- path=self._file_path("internationalization.html")
- )
+ template.render(path=self._file_path("internationalization.html"))
@requires_python_2
def test_bytestring_passthru(self):
@@ -1682,7 +1680,7 @@ Text
8,
8,
],
- "source_encoding": "ascii",
+ "source_encoding": "utf-8",
"filename": None,
"line_map": {
35: 29,
@@ -1773,7 +1771,7 @@ Text
8,
8,
],
- "source_encoding": "ascii",
+ "source_encoding": "utf-8",
"filename": None,
"line_map": {
34: 10,