Skip to content

Commit e9962b3

Browse files
committed
Use splitlines
1 parent 878e407 commit e9962b3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/test_workflows.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1044,7 +1044,7 @@ def test_cr_with_cm_operation():
10441044

10451045
def remove_trailing_whitespace(text: str) -> str:
10461046
text = text.strip()
1047-
return "\n".join(line.rstrip() for line in text.split("\n"))
1047+
return "\n".join(line.rstrip() for line in text.splitlines())
10481048

10491049

10501050
@pytest.mark.samples()

0 commit comments

Comments
 (0)