You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
t = Template(
"""
<%
def foo():
class Bat(object):
pass
Bat
%>
""".strip(),
strict_undefined=True,
)
# should pass
t.render()
t = Template(
"""
<%
def foo():
class Bat(object):
pass
Bat
%>
${Bat}
""".strip(),
strict_undefined=True,
)
# should pass
t.render(Bat='adsf')
# should raise
t.render()
however, make sure we distill these into test_ast.py as more test_locate_identifiers tests.
Migrated issue, originally created by Michael Bayer (@zzzeek)
would rise "NameError: 's' is not defined"
Attachments: 192.2.patch | 192.patch
The text was updated successfully, but these errors were encountered: