fix incorrect call (#762)

This commit is contained in:
Jelle Zijlstra 2019-03-15 10:39:08 -07:00 committed by Łukasz Langa
parent d6db1c12a8
commit b396f13761
2 changed files with 12 additions and 15 deletions

View File

@ -2206,7 +2206,7 @@ def rhs(line: Line, supports_trailing_commas: bool = False) -> Iterator[Line]:
# All splits failed, best effort split with no omits.
# This mostly happens to multiline strings that are by definition
# reported as not fitting a single line.
yield from right_hand_split(line, supports_trailing_commas)
yield from right_hand_split(line, line_length, supports_trailing_commas)
if line.inside_brackets:
split_funcs = [delimiter_split, standalone_comment_split, rhs]

View File

@ -166,17 +166,14 @@ def tricky_asserts(self) -> None:
_C.__init__.__code__.co_firstlineno + 1,
)
assert (
expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect
== {
key1: value1,
key2: value2,
key3: value3,
key4: value4,
key5: value5,
key6: value6,
key7: value7,
key8: value8,
key9: value9,
}
)
assert expectedexpectedexpectedexpectedexpectedexpectedexpectedexpectedexpect == {
key1: value1,
key2: value2,
key3: value3,
key4: value4,
key5: value5,
key6: value6,
key7: value7,
key8: value8,
key9: value9,
}