We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e386049 commit f881126Copy full SHA for f881126
tests/test_attrib.py
@@ -18,6 +18,7 @@
18
from __future__ import print_function
19
from __future__ import unicode_literals
20
21
+import io
22
import os
23
import unittest
24
@@ -63,7 +64,7 @@ def test_check_template_all_builtin_templates_are_valid(self):
63
64
builtin_templates_dir = os.path.dirname(attrib.DEFAULT_TEMPLATE_FILE)
65
for template in os.listdir(builtin_templates_dir):
66
template_loc = os.path.join(builtin_templates_dir, template)
- with open(template_loc, 'rb') as tmpl:
67
+ with io.open(template_loc, 'r', encoding='utf-8') as tmpl:
68
template = tmpl.read()
69
try:
70
assert None == attrib.check_template(template)
0 commit comments