Skip to content

Commit 104fc11

Browse files
committed
fix call of tm.assert_frame_equal
1 parent 5a5b347 commit 104fc11

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/io/json/test_pandas.py

+2-2
Original file line numberDiff line numberDiff line change
@@ -1606,9 +1606,9 @@ def test_json_negative_indent_raises(self):
16061606
@pytest.mark.filterwarnings("ignore:.*msgpack:FutureWarning")
16071607
def test_deprecate_numpy_argument_read_json(self):
16081608
# https://github.com/pandas-dev/pandas/issues/28512
1609-
df = DataFrame([1, 2, 3])
1609+
expected = DataFrame([1, 2, 3])
16101610
with tm.assert_produces_warning(None):
16111611
with catch_warnings():
16121612
filterwarnings("ignore", category=FutureWarning)
16131613
result = read_json(df.to_json(), numpy=True)
1614-
assert_frame_equal(result, df)
1614+
tm.assert_frame_equal(result, expected)

0 commit comments

Comments
 (0)