Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 4 additions & 0 deletions papermill/tests/test_translators.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,6 +107,10 @@ def test_translate_comment_python(test_input, expected):
Parameter("b", "float", "-2.3432", "My b variable"),
],
),
(
's = "a=b"',
[Parameter("s", "None", '"a=b"', "")],
),
],
)
def test_inspect_python(test_input, expected):
Expand Down
2 changes: 1 addition & 1 deletion papermill/translators.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,7 +246,7 @@ def flatten_accumulator(accumulator):
if nequal > 0:
grouped_variable.append(flatten_accumulator(accumulator))
accumulator = []
if nequal > 1:
if nequal > 2:
logger.warning(f"Unable to parse line {iline + 1} '{line}'.")
continue

Expand Down