We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 0eddba8 commit 1d1b14cCopy full SHA for 1d1b14c
pandas/tests/series/test_dtypes.py
@@ -291,8 +291,8 @@ def test_astype_categorical_to_other(self):
291
expected = s
292
tm.assert_series_equal(s.astype('category'), expected)
293
tm.assert_series_equal(s.astype(CategoricalDtype()), expected)
294
- msg = (r"could not convert string to float: '(0 - 499|9500 - 9999)'|"
295
- r"invalid literal for float\(\): (0 - 499|9500 - 9999)")
+ msg = (r"could not convert string to float|"
+ r"invalid literal for float\(\)")
296
with pytest.raises(ValueError, match=msg):
297
s.astype('float64')
298
0 commit comments