From c3e801f6eb6a3cbf7a306c95ae63fdf432c9c5cb 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 3dd05079..f4c0e2a6 100644 --- a/tests/SyntaxAndOutput_test.py +++ b/tests/SyntaxAndOutput_test.py @@ -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'