Skip to content

Commit 1ae4b9e

Browse files
committed
do not use pytest.raise
1 parent 66c2292 commit 1ae4b9e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

tests/test_string_accessors.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -191,7 +191,7 @@ def test_string_accessors_string_series():
191191
_check(assert_type(s_list.str.join("-"), "pd.Series[str]"))
192192

193193
# wrap doesn't accept positional arguments other than width
194-
with pytest.raises(TypeError):
194+
if TYPE_CHECKING_INVALID_USAGE:
195195
s.str.wrap(80, False) # type: ignore[misc] # pyright: ignore[reportCallIssue]
196196

197197

@@ -249,7 +249,7 @@ def test_string_accessors_string_index():
249249
_check(assert_type(idx_list.str.join("-"), "pd.Index[str]"))
250250

251251
# wrap doesn't accept positional arguments other than width
252-
with pytest.raises(TypeError):
252+
if TYPE_CHECKING_INVALID_USAGE:
253253
idx.str.wrap(80, False) # type: ignore[misc] # pyright: ignore[reportCallIssue]
254254

255255

0 commit comments

Comments
 (0)