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 Jun 2, 2016
1 parent 5c3da6e commit be4b591
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 @@ -1719,3 +1719,14 @@ def test_does_not_allow_autoself():
)
with pytest.raises(NotFound):
cls().respond()


@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 be4b591

Please sign in to comment.