Skip to content

Commit 09e16c8

Browse files
committed
Fixed line too long error
1 parent 861495b commit 09e16c8

File tree

1 file changed

+8
-2
lines changed

1 file changed

+8
-2
lines changed

pandas/tests/io/json/test_pandas.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2285,6 +2285,7 @@ def test_to_json_ea_null():
22852285
"""
22862286
assert result == expected
22872287

2288+
22882289
def test_to_json_escape_forward_slashes():
22892290
df = DataFrame(
22902291
{
@@ -2293,14 +2294,19 @@ def test_to_json_escape_forward_slashes():
22932294
"path3": Series(["ending/"], dtype="str"),
22942295
"path4": Series(["/beginning"], dtype="str"),
22952296
"path5": Series(["/multiples//multiple"], dtype="str"),
2296-
"path6": Series(["//"], dtype="str")
2297+
"path6": Series(["//"], dtype="str"),
22972298
}
22982299
)
22992300
result = df.to_json(orient="records", escape_forward_slashes=False)
2300-
expected = """[{"path1":"/escape/three/slashes","path2":"/","path3":"ending/","path4":"/beginning","path5":"/multiples//multiple","path6":"//"}]"""
2301+
expected1 = """[{"path1":"/escape/three/slashes","path2":"/","path3":"ending/""" ""
2302+
expected2 = (
2303+
""","path4":"/beginning","path5":"/multiples//multiple","path6":"//"}]"""
2304+
)
2305+
expected = expected1 + expected2
23012306

23022307
assert result == expected
23032308

2309+
23042310
def test_read_json_lines_rangeindex():
23052311
# GH 57429
23062312
data = """

0 commit comments

Comments
 (0)