Skip to content

Commit ac0989e

Browse files
d-v-bclaude
andcommitted
test: explain msg=None on the basic-1d string bad case
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 5e2ff9a commit ac0989e

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

tests/test_indexing.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -235,6 +235,8 @@ def test_get_basic_selection_0d(store: StorePath, use_out: bool, value: Any, dty
235235
msg="unsupported selection item for basic indexing; expected integer or slice, got <class 'float'>",
236236
escape=True,
237237
),
238+
# get_basic_selection and z[...] word their errors differently for a string
239+
# selection, so this case asserts only the exception type (msg=None).
238240
ExpectFail(
239241
input="foo",
240242
exception=IndexError,

0 commit comments

Comments
 (0)