We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0bbbd03 commit b6ebdf4Copy full SHA for b6ebdf4
pandas/tests/extension/base/methods.py
@@ -729,8 +729,8 @@ def test_equals_same_data_different_object(self, data):
729
730
def test_round(self, data):
731
if not data.dtype._is_numeric:
732
- msg = "dtype as it is non-numeric"
733
- with tm.assert_produces_warning(TypeError, match=msg):
+ msg = "non-numeric"
+ with pytest.raises(TypeError, match=msg):
734
data.round()
735
elif data.dtype._is_boolean:
736
result = pd.Series(data).round()
0 commit comments