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.
1 # flags: --preview --minimum-version=3.9
3 make_context_manager1() as cm1, \
4 make_context_manager2() as cm2, \
5 make_context_manager3() as cm3, \
6 make_context_manager4() as cm4 \
13 make_context_manager1() as cm1, \
14 make_context_manager2(), \
15 make_context_manager3() as cm3, \
16 make_context_manager4() \
22 new_new_new1() as cm1, \
29 new_new_new1() as cm1,
38 new_new_new1() as cm1,
47 this_is_a_very_long_call(looong_arg1=looong_value1, looong_arg2=looong_value2) as cm1, \
48 this_is_a_very_long_call(looong_arg1=looong_value1, looong_arg2=looong_value2, looong_arg3=looong_value3, looong_arg4=looong_value4) as cm2 \
53 with mock.patch.object(
54 self.my_runner, "first_method", autospec=True
55 ) as mock_run_adb, mock.patch.object(
56 self.my_runner, "second_method", autospec=True, return_value="foo"
61 with xxxxxxxx.some_kind_of_method(
67 ).another_method() as cmd:
73 make_context_manager1() as cm1, \
74 make_context_manager2() as cm2, \
75 make_context_manager3() as cm3, \
76 make_context_manager4() as cm4 \
80 async with some_function(
81 argument1, argument2, argument3="some_value"
82 ) as some_cm, some_other_function(
83 argument1, argument2, argument3="some_value"
92 make_context_manager1() as cm1,
93 make_context_manager2() as cm2,
94 make_context_manager3() as cm3,
95 make_context_manager4() as cm4,
102 make_context_manager1() as cm1,
103 make_context_manager2(),
104 make_context_manager3() as cm3,
105 make_context_manager4(),
110 with new_new_new1() as cm1, new_new_new2():
114 with new_new_new1() as cm1, new_new_new2():
121 new_new_new1() as cm1,
130 this_is_a_very_long_call(
131 looong_arg1=looong_value1, looong_arg2=looong_value2
133 this_is_a_very_long_call(
134 looong_arg1=looong_value1,
135 looong_arg2=looong_value2,
136 looong_arg3=looong_value3,
137 looong_arg4=looong_value4,
144 mock.patch.object(self.my_runner, "first_method", autospec=True) as mock_run_adb,
146 self.my_runner, "second_method", autospec=True, return_value="foo"
152 with xxxxxxxx.some_kind_of_method(
158 ).another_method() as cmd:
164 make_context_manager1() as cm1,
165 make_context_manager2() as cm2,
166 make_context_manager3() as cm3,
167 make_context_manager4() as cm4,
172 some_function(argument1, argument2, argument3="some_value") as some_cm,
173 some_other_function(argument1, argument2, argument3="some_value"),