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.
2 def test(self) -> None:
3 with patch("black.out", print):
5 unstyle(str(report)), "1 file reformatted, 1 file failed to reformat."
9 "1 file reformatted, 1 file left unchanged, 1 file failed to reformat.",
13 "2 files reformatted, 1 file left unchanged, 1 file failed to"
18 "2 files reformatted, 2 files left unchanged, 2 files failed to"
34 xxxxxxxxxxxxxxxx = Yyyy2YyyyyYyyyyy(
35 push_manager=context.request.resource_manager,
36 max_items_to_push=num_items,
37 batch_size=Yyyy2YyyyYyyyyYyyy.FULL_SIZE
39 # Only send the first n items.
40 items=items[:num_items]
43 'Utterly failed doctest test for %s\n File "%s", line %s, in %s\n\n%s'
44 % (test.name, test.filename, lineno, lname, err)
47 def omitting_trailers(self) -> None:
49 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
52 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
53 )[OneLevelIndex][TwoLevelIndex][ThreeLevelIndex][FourLevelIndex]
54 d[0][1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][
58 some.rather.elaborate.rule() and another.rule.ending_with.index[123]
61 def easy_asserts(self) -> None:
72 } == expected, "Not what we expected"
84 }, "Not what we expected"
98 def tricky_asserts(self) -> None:
110 value, is_going_to_be="too long to fit in a single line", srsly=True
111 ), "Not what we expected"
124 "Not what we expected and the message is too long to fit in one line"
128 value, is_going_to_be="too long to fit in a single line", srsly=True
139 }, "Not what we expected"
152 "Not what we expected and the message is too long to fit in one line"
153 " because it's too long"
156 dis_c_instance_method = """\
157 %3d 0 LOAD_FAST 1 (x)
162 10 LOAD_CONST 0 (None)
165 _C.__init__.__code__.co_firstlineno + 1,
169 expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect
188 def test(self) -> None:
189 with patch("black.out", print):
191 unstyle(str(report)), "1 file reformatted, 1 file failed to reformat."
194 unstyle(str(report)),
195 "1 file reformatted, 1 file left unchanged, 1 file failed to reformat.",
198 unstyle(str(report)),
199 "2 files reformatted, 1 file left unchanged, 1 file failed to"
203 unstyle(str(report)),
204 "2 files reformatted, 2 files left unchanged, 2 files failed to"
220 xxxxxxxxxxxxxxxx = Yyyy2YyyyyYyyyyy(
221 push_manager=context.request.resource_manager,
222 max_items_to_push=num_items,
223 batch_size=Yyyy2YyyyYyyyyYyyy.FULL_SIZE,
225 # Only send the first n items.
226 items=items[:num_items]
229 'Utterly failed doctest test for %s\n File "%s", line %s, in %s\n\n%s'
230 % (test.name, test.filename, lineno, lname, err)
233 def omitting_trailers(self) -> None:
235 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
238 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
239 )[OneLevelIndex][TwoLevelIndex][ThreeLevelIndex][FourLevelIndex]
240 d[0][1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][
244 some.rather.elaborate.rule() and another.rule.ending_with.index[123]
247 def easy_asserts(self) -> None:
258 } == expected, "Not what we expected"
270 }, "Not what we expected"
284 def tricky_asserts(self) -> None:
296 value, is_going_to_be="too long to fit in a single line", srsly=True
297 ), "Not what we expected"
310 "Not what we expected and the message is too long to fit in one line"
314 value, is_going_to_be="too long to fit in a single line", srsly=True
325 }, "Not what we expected"
338 "Not what we expected and the message is too long to fit in one line"
339 " because it's too long"
342 dis_c_instance_method = """\
343 %3d 0 LOAD_FAST 1 (x)
348 10 LOAD_CONST 0 (None)
351 _C.__init__.__code__.co_firstlineno + 1,
355 expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect