Skip to content

Commit 6053227

Browse files
committed
TST: fixed variable names in test_to_json_large_numbers
1 parent 2d43001 commit 6053227

File tree

1 file changed

+4
-6
lines changed

1 file changed

+4
-6
lines changed

pandas/tests/io/json/test_pandas.py

+4-6
Original file line numberDiff line numberDiff line change
@@ -1246,15 +1246,13 @@ def test_read_jsonl_unicode_chars(self):
12461246
@pytest.mark.parametrize("bigNum", [sys.maxsize + 1, -(sys.maxsize + 2)])
12471247
def test_to_json_large_numbers(self, bigNum):
12481248
# GH34473
1249-
originalSeries = Series(bigNum, dtype=object, index=["articleId"])
1250-
result = originalSeries.to_json()
1249+
series = Series(bigNum, dtype=object, index=["articleId"])
1250+
result = series.to_json()
12511251
expected = '{"articleId":' + str(bigNum) + "}"
12521252
assert result == expected
12531253

1254-
originalDataFrame = DataFrame(
1255-
bigNum, dtype=object, index=["articleId"], columns=[0]
1256-
)
1257-
result = originalDataFrame.to_json()
1254+
df = DataFrame(bigNum, dtype=object, index=["articleId"], columns=[0])
1255+
result = df.to_json()
12581256
expected = '{"0":{"articleId":' + str(bigNum) + "}}"
12591257
assert result == expected
12601258

0 commit comments

Comments
 (0)