]> git.madduck.net Git - etc/vim.git/blob - tests/data/cases/preview_context_managers_autodetect_39.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:

Fix parser bug where "type" was misinterpreted as a keyword inside a match (#3950)
[etc/vim.git] / tests / data / cases / preview_context_managers_autodetect_39.py
1 # flags: --preview --minimum-version=3.9
2 # This file uses parenthesized context managers introduced in Python 3.9.
3
4
5 with \
6      make_context_manager1() as cm1, \
7      make_context_manager2() as cm2, \
8      make_context_manager3() as cm3, \
9      make_context_manager4() as cm4 \
10 :
11     pass
12
13
14 with (
15      new_new_new1() as cm1,
16      new_new_new2()
17 ):
18     pass
19
20
21 # output
22 # This file uses parenthesized context managers introduced in Python 3.9.
23
24
25 with (
26     make_context_manager1() as cm1,
27     make_context_manager2() as cm2,
28     make_context_manager3() as cm3,
29     make_context_manager4() as cm4,
30 ):
31     pass
32
33
34 with new_new_new1() as cm1, new_new_new2():
35     pass