Skip to content

Commit 5b48a03

Browse files
committed
review
1 parent 81db896 commit 5b48a03

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

pandas/tests/plotting/test_frame.py

+9-4
Original file line numberDiff line numberDiff line change
@@ -150,11 +150,16 @@ def test_two_plots_with_x_str(self):
150150
ax = df2.plot(ax=ax)
151151

152152
line1, line2 = ax.lines
153+
153154
# xdata should not be touched (Earlier it was [0, 1])
154-
np.testing.assert_equal(line1.get_xdata(), x1)
155-
np.testing.assert_equal(line1.get_ydata(), y1)
156-
np.testing.assert_equal(line2.get_xdata(), x2)
157-
np.testing.assert_equal(line2.get_ydata(), y2)
155+
tm.assert_numpy_array_equal(line1.get_xdata(), np.array(x1),
156+
check_dtype=False)
157+
tm.assert_numpy_array_equal(line1.get_ydata(), np.array(y1),
158+
check_dtype=False)
159+
tm.assert_numpy_array_equal(line2.get_xdata(), np.array(x2),
160+
check_dtype=False)
161+
tm.assert_numpy_array_equal(line2.get_ydata(), np.array(y2),
162+
check_dtype=False)
158163

159164
# GH 15516
160165
def test_mpl2_color_cycle_str(self):

0 commit comments

Comments
 (0)