From feed256bd4c42edb164fa278e6f15b7d8af37f23 Mon Sep 17 00:00:00 2001 From: Anthony Sottile Date: Thu, 28 Aug 2014 08:29:21 -0700 Subject: [PATCH] Add failing test for #143 --- tests/SyntaxAndOutput_test.py | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/tests/SyntaxAndOutput_test.py b/tests/SyntaxAndOutput_test.py index acd62203..ae58bce9 100644 --- a/tests/SyntaxAndOutput_test.py +++ b/tests/SyntaxAndOutput_test.py @@ -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'