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

Drop support for Python 3.7 (#3765)
[etc/vim.git] / tests / data / preview_context_managers / targeting_py38.py
1 with \
2      make_context_manager1() as cm1, \
3      make_context_manager2() as cm2, \
4      make_context_manager3() as cm3, \
5      make_context_manager4() as cm4 \
6 :
7     pass
8
9
10 with \
11      make_context_manager1() as cm1, \
12      make_context_manager2(), \
13      make_context_manager3() as cm3, \
14      make_context_manager4() \
15 :
16     pass
17
18
19 with \
20      new_new_new1() as cm1, \
21      new_new_new2() \
22 :
23     pass
24
25
26 with mock.patch.object(
27     self.my_runner, "first_method", autospec=True
28 ) as mock_run_adb, mock.patch.object(
29     self.my_runner, "second_method", autospec=True, return_value="foo"
30 ):
31     pass
32
33
34 # output
35
36
37 with make_context_manager1() as cm1, make_context_manager2() as cm2, make_context_manager3() as cm3, make_context_manager4() as cm4:
38     pass
39
40
41 with make_context_manager1() as cm1, make_context_manager2(), make_context_manager3() as cm3, make_context_manager4():
42     pass
43
44
45 with new_new_new1() as cm1, new_new_new2():
46     pass
47
48
49 with mock.patch.object(
50     self.my_runner, "first_method", autospec=True
51 ) as mock_run_adb, mock.patch.object(
52     self.my_runner, "second_method", autospec=True, return_value="foo"
53 ):
54     pass