

def test_no_scope(self):
    tmpl = env.from_string('{% if a %}{% set foo = 1 %}{% endif %}{{ foo }}')
    assert (tmpl.render(a=True) == '1')
    tmpl = env.from_string('{% if true %}{% set foo = 1 %}{% endif %}{{ foo }}')
    assert (self.render() == '1')

dataset/ETHPy150Open GeekTrainer/Flask/Work/Trivia - Module 5/env/Lib/site-packages/jinja2/testsuite/core_tags.py IfConditionTestCase.test_no_scope/VarMisuse@44/99 `tmpl`->`self`