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 c6cb4b9 commit a616b29Copy full SHA for a616b29
pandas/tests/series/accessors/test_str_accessor.py
@@ -15,7 +15,8 @@ def test_str_attribute(self):
15
16
# str accessor only valid with string values
17
ser = Series(range(5))
18
- with pytest.raises(AttributeError, match="only use .str accessor"):
+ msg = "Can only use .str accessor with string values, not integer"
19
+ with pytest.raises(AttributeError, match=msg):
20
ser.str.repeat(2)
21
22
def test_str_accessor_updates_on_inplace(self):
0 commit comments