Skip to content

Commit 95e806b

Browse files
committed
make the concatenation explicit
1 parent 81ebb9b commit 95e806b

File tree

1 file changed

+10
-11
lines changed

1 file changed

+10
-11
lines changed

pandas/tests/io/test_clipboard.py

+10-11
Original file line numberDiff line numberDiff line change
@@ -259,21 +259,20 @@ def test_infer_excel_with_nulls(self, request, mock_clipboard):
259259
@pytest.mark.parametrize(
260260
"multiindex",
261261
[
262-
(
263-
( # Can't use `dedent` here as it will remove the leading `\t`
264-
"\t\t\tcol1\tcol2\n"
265-
"A\t0\tTrue\t1\tred\n"
266-
"A\t1\tTrue\t\tblue\n"
267-
"B\t0\tFalse\t2\tgreen\n"
262+
( # Can't use `dedent` here as it will remove the leading `\t`
263+
"\n".join(
264+
[
265+
"\t\t\tcol1\tcol2",
266+
"A\t0\tTrue\t1\tred",
267+
"A\t1\tTrue\t\tblue",
268+
"B\t0\tFalse\t2\tgreen",
269+
]
268270
),
269271
[["A", "A", "B"], [0, 1, 0], [True, True, False]],
270272
),
271273
(
272-
(
273-
"\t\tcol1\tcol2\n"
274-
"A\t0\t1\tred\n"
275-
"A\t1\t\tblue\n"
276-
"B\t0\t2\tgreen\n"
274+
"\n".join(
275+
["\t\tcol1\tcol2", "A\t0\t1\tred", "A\t1\t\tblue", "B\t0\t2\tgreen"]
277276
),
278277
[["A", "A", "B"], [0, 1, 0]],
279278
),

0 commit comments

Comments
 (0)