Debian Codegraph @

tests/data/cases/context_managers_38.py

raw
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