Skip to content

Commit 3ca25d5

Browse files
committed
TST: Remove match= in test_setitem_invalid to avoid PytestWarning
1 parent cfe54bd commit 3ca25d5

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

pandas/tests/extension/base/setitem.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,11 @@ def test_delitem_series(self, data):
440440
tm.assert_series_equal(ser, expected)
441441

442442
def test_setitem_invalid(self, data, invalid_scalar):
443-
msg = "" # messages vary by subclass, so we do not test it
444-
with pytest.raises((ValueError, TypeError), match=msg):
443+
# messages vary by subclass, so we do not test it
444+
with pytest.raises((ValueError, TypeError), match=None):
445445
data[0] = invalid_scalar
446446

447-
with pytest.raises((ValueError, TypeError), match=msg):
447+
with pytest.raises((ValueError, TypeError), match=None):
448448
data[:] = invalid_scalar
449449

450450
def test_setitem_2d_values(self, data):

0 commit comments

Comments
 (0)