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.
3 def test(self) -> None:
4 with patch("black.out", print):
6 unstyle(str(report)), "1 file reformatted, 1 file failed to reformat."
10 "1 file reformatted, 1 file left unchanged, 1 file failed to reformat.",
14 "2 files reformatted, 1 file left unchanged, "
15 "1 file failed to reformat.",
19 "2 files reformatted, 2 files left unchanged, "
20 "2 files failed to reformat.",
35 xxxxxxxxxxxxxxxx = Yyyy2YyyyyYyyyyy(
36 push_manager=context.request.resource_manager,
37 max_items_to_push=num_items,
38 batch_size=Yyyy2YyyyYyyyyYyyy.FULL_SIZE,
40 # Only send the first n items.
41 items=items[:num_items]
44 "Utterly failed doctest test for %s\n"
45 ' File "%s", line %s, in %s\n\n%s'
46 % (test.name, test.filename, lineno, lname, err)
49 def omitting_trailers(self) -> None:
51 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
54 hey_this_is_a_very_long_call, it_has_funny_attributes, really=True
55 )[OneLevelIndex][TwoLevelIndex][ThreeLevelIndex][FourLevelIndex]
56 d[0][1][2][3][4][5][6][7][8][9][10][11][12][13][14][15][16][17][18][19][20][21][
60 some.rather.elaborate.rule() and another.rule.ending_with.index[123]
63 def easy_asserts(self) -> None:
74 } == expected, "Not what we expected"
86 }, "Not what we expected"
100 def tricky_asserts(self) -> None:
112 value, is_going_to_be="too long to fit in a single line", srsly=True
113 ), "Not what we expected"
126 "Not what we expected and the message is too long to fit in one line"
130 value, is_going_to_be="too long to fit in a single line", srsly=True
141 }, "Not what we expected"
154 "Not what we expected and the message is too long to fit "
155 "in one line because it's too long"
158 dis_c_instance_method = """\
159 %3d 0 LOAD_FAST 1 (x)
164 10 LOAD_CONST 0 (None)
167 _C.__init__.__code__.co_firstlineno + 1,
171 expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect