Skip to content

Commit

Permalink
Add failing test for #143
Browse files Browse the repository at this point in the history
  • Loading branch information
asottile committed Aug 28, 2014
1 parent d54f38a commit c3e801f
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/SyntaxAndOutput_test.py
Expand Up @@ -2201,3 +2201,14 @@ def test_with_statement_short_form():
'Ctx After\n'
'After'
)


@pytest.mark.xfail
def test_transaction_cleared_on_dummy_trans():
cls = compile_to_class(
'#def foo():#return "hello"\n'
'#def bar():world\n'
)
tmpl = cls()
assert tmpl.foo() == 'hello'
assert tmpl.bar() == 'world'

0 comments on commit c3e801f

Please sign in to comment.