]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/preview_context_managers_autodetect_311.py

madduck's git repository

Every one of the projects in this repository is available at the canonical URL git://git.madduck.net/madduck/pub/<projectpath> — see each project's metadata for the exact URL.

All patches and comments are welcome. Please squash your changes to logical commits before using git-format-patch and git-send-email to patches@git.madduck.net. If you'd read over the Git project's submission guidelines and adhered to them, I'd be especially grateful.

SSH access, as well as push access can be individually arranged.

If you use my repositories frequently, consider adding the following snippet to ~/.gitconfig and using the third clone URL listed for each project:

[url "git://git.madduck.net/madduck/"]
  insteadOf = madduck:

Report all stacktraces in verbose mode (#3938)
[etc/vim.git] / tests / data / cases / preview_context_managers_autodetect_311.py
1 # flags: --preview --minimum-version=3.11
2 # This file uses except* clause in Python 3.11.
3
4
5 try:
6     some_call()
7 except* Error as e:
8     pass
9
10
11 with \
12      make_context_manager1() as cm1, \
13      make_context_manager2() as cm2, \
14      make_context_manager3() as cm3, \
15      make_context_manager4() as cm4 \
16 :
17     pass
18
19
20 # output
21
22
23 # This file uses except* clause in Python 3.11.
24
25
26 try:
27     some_call()
28 except* Error as e:
29     pass
30
31
32 with (
33     make_context_manager1() as cm1,
34     make_context_manager2() as cm2,
35     make_context_manager3() as cm3,
36     make_context_manager4() as cm4,
37 ):
38     pass