diff options
author | Neil <nyamatongwe@gmail.com> | 2020-02-03 15:02:40 +1100 |
---|---|---|
committer | Neil <nyamatongwe@gmail.com> | 2020-02-03 15:02:40 +1100 |
commit | eaf67d1e62ffb55eefb92bb91d8d88e56d7cbef0 (patch) | |
tree | 971734673d54c8ec9fb0dc316d31da2000ce7c41 /lexilla/test/examples/python/x.py | |
parent | 610e48573cb7c5ce2cc7a146a406257ef2890468 (diff) | |
download | scintilla-mirror-eaf67d1e62ffb55eefb92bb91d8d88e56d7cbef0.tar.gz |
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.
Diffstat (limited to 'lexilla/test/examples/python/x.py')
-rw-r--r-- | lexilla/test/examples/python/x.py | 8 |
1 files changed, 8 insertions, 0 deletions
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 |