Skip to content

Commit b6ebdf4

Browse files
committed
match
1 parent 0bbbd03 commit b6ebdf4

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

pandas/tests/extension/base/methods.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -729,8 +729,8 @@ def test_equals_same_data_different_object(self, data):
729729

730730
def test_round(self, data):
731731
if not data.dtype._is_numeric:
732-
msg = "dtype as it is non-numeric"
733-
with tm.assert_produces_warning(TypeError, match=msg):
732+
msg = "non-numeric"
733+
with pytest.raises(TypeError, match=msg):
734734
data.round()
735735
elif data.dtype._is_boolean:
736736
result = pd.Series(data).round()

0 commit comments

Comments
 (0)