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'