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 Dec 26, 2014
1 parent 534c3b4 commit feed256
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions tests/SyntaxAndOutput_test.py
Original file line number Diff line number Diff line change
Expand Up @@ -2090,3 +2090,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 feed256

Please sign in to comment.