Commit c2e0881
test: capture deprecation warning in repr_rows conflict case
DataFrameHtmlFormatter(repr_rows=..., max_rows=...) fires the deprecation
warning before raising ValueError, but pytest.raises does not catch warnings.
The escaping warning surfaced in every pytest run. Wrap the call in both
pytest.raises and pytest.warns so the warning is asserted, not leaked.
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>1 parent 3c052ef commit c2e0881
1 file changed
Lines changed: 6 additions & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1704 | 1704 | | |
1705 | 1705 | | |
1706 | 1706 | | |
1707 | | - | |
1708 | | - | |
| 1707 | + | |
| 1708 | + | |
| 1709 | + | |
| 1710 | + | |
| 1711 | + | |
| 1712 | + | |
1709 | 1713 | | |
1710 | 1714 | | |
1711 | 1715 | | |
| |||
0 commit comments