Skip to content
Snippets Groups Projects
Commit 31888375 authored by Mike Bayer's avatar Mike Bayer
Browse files

- changelog

- fix test to work under py3.2
parent 99d3272b
No related branches found
No related tags found
No related merge requests found
0.9.1
- [bug] Fixed TGPlugin.render method to support unicode template
names in Py2K - courtesy Vladimir Magamedov.
- [bug] Fixed an AST issue that was preventing correct operation
under alpha versions of Python 3.4. Pullreq courtesy Zer0-.
......
......@@ -26,7 +26,7 @@ class TGPlugin(object):
elif k in ['directories', 'filesystem_checks', 'module_directory']:
lookup_options[k] = v
self.lookup = TemplateLookup(**lookup_options)
self.tmpl_options = {}
# transfer lookup args to template args, based on those available
# in getargspec
......
import unittest
from mako.ext.turbogears import TGPlugin
from test.util import flatten_result, result_lines
from test.util import result_lines
from test import TemplateTest, template_base
from mako import compat
tl = TGPlugin(options=dict(directories=[template_base]), extension='html')
......@@ -45,6 +44,6 @@ class TestTGPlugin(TemplateTest):
assert result_lines(tl.render({}, template='/index.html')) == [
"this is index"
]
assert result_lines(tl.render({}, template=u'/index.html')) == [
assert result_lines(tl.render({}, template=compat.u('/index.html'))) == [
"this is index"
]
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment