From eaf67d1e62ffb55eefb92bb91d8d88e56d7cbef0 Mon Sep 17 00:00:00 2001 From: Neil Date: Mon, 3 Feb 2020 15:02:40 +1100 Subject: Bug [#2139]. Add test case for compound decorator. This is before-fix and demonstrates the issue. Remove the .new file as that is a temporary. --- lexilla/test/examples/python/x.py | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'lexilla/test/examples/python/x.py') diff --git a/lexilla/test/examples/python/x.py b/lexilla/test/examples/python/x.py index 12c4b71df..57833c059 100644 --- a/lexilla/test/examples/python/x.py +++ b/lexilla/test/examples/python/x.py @@ -9,3 +9,11 @@ def depunctuate(s): else: d = d + " " return d + +import contextlib + +@contextlib.contextmanager +def singleuse(): + print("Before") + yield +with singleuse(): pass -- cgit v1.2.3