Skip to content

Commit ccfc283

Browse files
committed
Catch warning
1 parent 732d8d3 commit ccfc283

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

pandas/tests/frame/indexing/test_setitem.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -689,7 +689,8 @@ def test_2d_array(self):
689689
a = np.ones((10, 1))
690690
df = DataFrame(index=np.arange(10))
691691
df["np-array"] = a
692-
df["np-matrix"] = np.matrix(a)
692+
with tm.assert_produces_warning(PendingDeprecationWarning):
693+
df["np-matrix"] = np.matrix(a)
693694

694695
tm.assert_frame_equal(df, expected)
695696

0 commit comments

Comments
 (0)