Commit 0b0791b
Further warning exclusion cleanup and test improvements (#10693)
* Remove obsolete warning exclusions from pyproject.toml
Removed 11 warning exclusions that are no longer needed:
- Invalid cast warnings from duck_array_ops and test_array_api
- CachingFileManager deallocation warnings from backends
- Deprecated treenode methods (ancestors, iter_lineage, lineage)
- Test-specific deprecations that no longer exist
These exclusions were verified to be safe to remove through testing.
The test suite passes with 20,779 tests after removal.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Remove additional obsolete UserWarning exclusions
Removed 3 more warning exclusions that are no longer needed:
- UserWarning from test_coding_times
- UserWarning from test_computation
- UserWarning from test_dataset
All test files pass without these warning exclusions.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Remove 3 more obsolete warning exclusions
Removed warning exclusions that are no longer needed:
- "No index created" UserWarning - Tests properly handle with pytest.warns
- "pandas.MultiIndex" FutureWarning - No longer triggered
- "Duplicate dimension names" UserWarning - Tests handle with local filterwarnings
These warnings are either properly tested or no longer occur.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Use pytest.warns consistently for quantile interpolation deprecation
Fixed test_dataset.py to use pytest.warns instead of warnings.catch_warnings
for testing the interpolation->method deprecation warning. This makes it
consistent with the other test files.
Note: We cannot remove the global warning exclusion because the error:::xarray.*
rule converts warnings to errors before pytest.warns can catch them. This is
a known limitation of the current filterwarnings configuration.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* Add local filterwarnings to quantile interpolation deprecation tests
Instead of relying on a global warning exclusion, added
@pytest.mark.filterwarnings decorators to the specific tests that
test the interpolation->method deprecation warning. This allows
the warning to be properly tested while avoiding the conflict
with the error:::xarray.* rule.
Now the global exclusion for this warning can be safely removed.
🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: Claude <noreply@anthropic.com>
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent bd2a035 commit 0b0791b
5 files changed
Lines changed: 16 additions & 11 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
358 | 358 | | |
359 | 359 | | |
360 | 360 | | |
361 | | - | |
362 | | - | |
363 | | - | |
364 | | - | |
365 | 361 | | |
366 | | - | |
367 | 362 | | |
368 | 363 | | |
369 | 364 | | |
370 | | - | |
371 | 365 | | |
372 | | - | |
373 | 366 | | |
374 | 367 | | |
375 | 368 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
3028 | 3028 | | |
3029 | 3029 | | |
3030 | 3030 | | |
| 3031 | + | |
| 3032 | + | |
| 3033 | + | |
3031 | 3034 | | |
3032 | 3035 | | |
3033 | 3036 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6161 | 6161 | | |
6162 | 6162 | | |
6163 | 6163 | | |
| 6164 | + | |
| 6165 | + | |
| 6166 | + | |
6164 | 6167 | | |
6165 | 6168 | | |
6166 | 6169 | | |
6167 | 6170 | | |
6168 | 6171 | | |
6169 | | - | |
| 6172 | + | |
| 6173 | + | |
| 6174 | + | |
| 6175 | + | |
6170 | 6176 | | |
6171 | 6177 | | |
6172 | | - | |
6173 | | - | |
6174 | | - | |
6175 | 6178 | | |
6176 | 6179 | | |
6177 | 6180 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
565 | 565 | | |
566 | 566 | | |
567 | 567 | | |
| 568 | + | |
| 569 | + | |
| 570 | + | |
568 | 571 | | |
569 | 572 | | |
570 | 573 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1928 | 1928 | | |
1929 | 1929 | | |
1930 | 1930 | | |
| 1931 | + | |
| 1932 | + | |
| 1933 | + | |
1931 | 1934 | | |
1932 | 1935 | | |
1933 | 1936 | | |
| |||
0 commit comments