aboutsummaryrefslogtreecommitdiffstats
path: root/test/foo/test_ns.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-08-03 13:41:15 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-08-03 13:41:15 -0400
commit3bd802b9504d9d6f81cb35801cc61267f1f9697c (patch)
tree6bad3fb801a7a5ba261b2d868283977113f069da /test/foo/test_ns.py
parentfaf3a4d7bdde373a73c74fe70af87de841de800e (diff)
downloadexternal_python_mako-3bd802b9504d9d6f81cb35801cc61267f1f9697c.tar.gz
external_python_mako-3bd802b9504d9d6f81cb35801cc61267f1f9697c.tar.bz2
external_python_mako-3bd802b9504d9d6f81cb35801cc61267f1f9697c.zip
- [bug] Using <%namespace import="*" module="somemodule"/> now
skips over module elements that are not explcitly callable, avoiding TypeError when trying to produce partials. [ticket:207]
Diffstat (limited to 'test/foo/test_ns.py')
-rw-r--r--test/foo/test_ns.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/test/foo/test_ns.py b/test/foo/test_ns.py
index 7a2425d..282447a 100644
--- a/test/foo/test_ns.py
+++ b/test/foo/test_ns.py
@@ -1,7 +1,10 @@
def foo1(context):
context.write("this is foo1.")
return ''
-
+
def foo2(context, x):
context.write("this is foo2, x is " + x)
- return '' \ No newline at end of file
+ return ''
+
+
+foo3 = "I'm not a callable" \ No newline at end of file