diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-02 15:08:34 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2010-09-02 15:08:34 -0400 |
commit | 8bb8f0b520937754a9e833e289149a4547b314dc (patch) | |
tree | f0690df7471a67af3621062354a3d62e2d62a3c8 /test/test_call.py | |
parent | 49db3f99c9f09caec8d63534b371808fbd4c2209 (diff) | |
download | external_python_mako-8bb8f0b520937754a9e833e289149a4547b314dc.tar.gz external_python_mako-8bb8f0b520937754a9e833e289149a4547b314dc.tar.bz2 external_python_mako-8bb8f0b520937754a9e833e289149a4547b314dc.zip |
- adjust the new multiline ${} in tag feature to allow trailing whitespace,
doesn't occur on Python 2.7
Diffstat (limited to 'test/test_call.py')
-rw-r--r-- | test/test_call.py | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/test/test_call.py b/test/test_call.py index d47ec11..fecb2de 100644 --- a/test/test_call.py +++ b/test/test_call.py @@ -47,6 +47,9 @@ class CallTest(TemplateTest): def test_new_syntax(self): """test foo:bar syntax, including multiline args and expression eval.""" + # note the trailing whitespace in the bottom ${} expr, need to strip + # that off < python 2.7 + t = Template(""" <%def name="foo(x, y, q, z)"> ${x} @@ -64,7 +67,9 @@ class CallTest(TemplateTest): (1, 2), (3, 4), (5, 6) - ]}"/> + ] + + }"/> """) eq_( |