-
Notifications
You must be signed in to change notification settings - Fork 0
Fix pytest breaking changes #99
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -44,17 +44,17 @@ def _test_array_recode(array_with_index_and_table): | |
| # XXX(leon): we don't yet support native qdb -> np.ndarray with dtype `null-terminated binary` (S). I don't think we | ||
| # should ever do this, but we do need it for input. That's why we can't test this right now, because we | ||
| # can't do it full circle. | ||
| return True | ||
| return | ||
|
|
||
| (idx2, xs2) = m.test_array_recode(ctype, dtype, (idx1, xs1)) | ||
| assert_indexed_arrays_equal((idx1, xs1), (idx2, xs2)) | ||
|
|
||
|
|
||
| @conftest.override_sparsify("partial") | ||
| def test_array_recode_sparsify_partial(array_with_index_and_table): | ||
| return _test_array_recode(array_with_index_and_table) | ||
| _test_array_recode(array_with_index_and_table) | ||
|
||
|
|
||
|
|
||
| @conftest.override_sparsify("none") | ||
| def test_array_recode_sparsify_none(array_with_index_and_table): | ||
| return _test_array_recode(array_with_index_and_table) | ||
| _test_array_recode(array_with_index_and_table) | ||
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Returning None here avoids sending an unintended value back to the caller, in line with pytest 8.4.0 expectations. Ensure this behavior is intentional for the edge case when dtype.char equals 'S'.