summaryrefslogtreecommitdiff
path: root/test/ext
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2015-10-26 21:51:07 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2015-10-26 21:51:07 -0400
commitf155ccce42ec87d6e002731358aceb0ec4b7436d (patch)
tree438897e4bc2db0367a81cd4c1ff287fa349d9364 /test/ext
parent48a961ee984273f89770fda02edd44162eebf29e (diff)
downloadmako-f155ccce42ec87d6e002731358aceb0ec4b7436d.tar.gz
- still supporting py2.6 here
Diffstat (limited to 'test/ext')
-rw-r--r--test/ext/test_babelplugin.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/test/ext/test_babelplugin.py b/test/ext/test_babelplugin.py
index abce70a..3658c50 100644
--- a/test/ext/test_babelplugin.py
+++ b/test/ext/test_babelplugin.py
@@ -82,12 +82,12 @@ class ExtractMakoTestCase(TemplateTest):
@skip()
def test_extract_utf8(self):
mako_tmpl = open(os.path.join(template_base, 'gettext_utf8.mako'), 'rb')
- message = next(extract(mako_tmpl, {'_', None}, [], {'encoding': 'utf-8'}))
+ message = next(extract(mako_tmpl, set(['_', None]), [], {'encoding': 'utf-8'}))
assert message == (1, '_', u'K\xf6ln', [])
@skip()
def test_extract_cp1251(self):
mako_tmpl = open(os.path.join(template_base, 'gettext_cp1251.mako'), 'rb')
- message = next(extract(mako_tmpl, {'_', None}, [], {'encoding': 'cp1251'}))
+ message = next(extract(mako_tmpl, set(['_', None]), [], {'encoding': 'cp1251'}))
# "test" in Rusian. File encoding is cp1251 (aka "windows-1251")
assert message == (1, '_', u'\u0442\u0435\u0441\u0442', [])