From: Jelle Zijlstra Date: Fri, 15 Mar 2019 17:39:08 +0000 (-0700) Subject: fix incorrect call (#762) X-Git-Url: https://git.madduck.net/etc/vim.git/commitdiff_plain/b396f137618e4eb7c73b49033530383c45b160f3?hp=d6db1c12a8e14833fe22da377cddc2bd1f43dc14 fix incorrect call (#762) --- diff --git a/black.py b/black.py index c44bc9b..680b1f4 100644 --- a/black.py +++ b/black.py @@ -2206,7 +2206,7 @@ def split_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] diff --git a/tests/data/composition.py b/tests/data/composition.py index ac63e46..31f5bd5 100644 --- a/tests/data/composition.py +++ b/tests/data/composition.py @@ -166,17 +166,14 @@ class C: _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, + }