Skip to content

Commit 2975616

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

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

pandas/tests/extension/base/setitem.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -440,11 +440,10 @@ 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+
with pytest.raises((ValueError, TypeError)):
445444
data[0] = invalid_scalar
446445

447-
with pytest.raises((ValueError, TypeError), match=msg):
446+
with pytest.raises((ValueError, TypeError)):
448447
data[:] = invalid_scalar
449448

450449
def test_setitem_2d_values(self, data):

0 commit comments

Comments
 (0)