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

CI Test: Deprecating 'Healthcheck.all()' from Hypothesis in fuzz.py (#3945)
[etc/vim.git] / tests / data / cases / preview_context_managers_38.py
1 # flags: --preview --minimum-version=3.8
2 with \
3      make_context_manager1() as cm1, \
4      make_context_manager2() as cm2, \
5      make_context_manager3() as cm3, \
6      make_context_manager4() as cm4 \
7 :
8     pass
9
10
11 with \
12      make_context_manager1() as cm1, \
13      make_context_manager2(), \
14      make_context_manager3() as cm3, \
15      make_context_manager4() \
16 :
17     pass
18
19
20 with \
21      new_new_new1() as cm1, \
22      new_new_new2() \
23 :
24     pass
25
26
27 with mock.patch.object(
28     self.my_runner, "first_method", autospec=True
29 ) as mock_run_adb, mock.patch.object(
30     self.my_runner, "second_method", autospec=True, return_value="foo"
31 ):
32     pass
33
34
35 # output
36
37
38 with make_context_manager1() as cm1, make_context_manager2() as cm2, make_context_manager3() as cm3, make_context_manager4() as cm4:
39     pass
40
41
42 with make_context_manager1() as cm1, make_context_manager2(), make_context_manager3() as cm3, make_context_manager4():
43     pass
44
45
46 with new_new_new1() as cm1, new_new_new2():
47     pass
48
49
50 with mock.patch.object(
51     self.my_runner, "first_method", autospec=True
52 ) as mock_run_adb, mock.patch.object(
53     self.my_runner, "second_method", autospec=True, return_value="foo"
54 ):
55     pass