diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-08 19:31:15 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-10-08 19:31:15 -0400 |
commit | 31888375ee0997fe74fc78702d04cc480e82415d (patch) | |
tree | 4d1bb7831f8b3789d21c4fdb03a38641116b01f4 /test/test_tgplugin.py | |
parent | 99d3272ba4d84d2b6dcc0bd46a48553f83787755 (diff) | |
download | external_python_mako-31888375ee0997fe74fc78702d04cc480e82415d.tar.gz external_python_mako-31888375ee0997fe74fc78702d04cc480e82415d.tar.bz2 external_python_mako-31888375ee0997fe74fc78702d04cc480e82415d.zip |
- changelog
- fix test to work under py3.2
Diffstat (limited to 'test/test_tgplugin.py')
-rw-r--r-- | test/test_tgplugin.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/test/test_tgplugin.py b/test/test_tgplugin.py index 9564c43..3f548c4 100644 --- a/test/test_tgplugin.py +++ b/test/test_tgplugin.py @@ -1,8 +1,7 @@ -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" ] |