Commit 85b7445
TST: test for warnings using pytest.warns() (#56974)
* TST: test for warnings using tm.assert_produces_warning()
Fix tests that used `pytest.raises()` to check for warnings, to use
`tm.assert_produces_warning()` instead. This is more correct, and it
fixes running the test suite without `-Werror`. This is how Gentoo runs
it, to avoid sudden test failures due to new deprecation warnings from
upgraded dependencies.
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>1 parent 213e38e commit 85b7445
2 files changed
+9
-5
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1361 | 1361 | | |
1362 | 1362 | | |
1363 | 1363 | | |
1364 | | - | |
| 1364 | + | |
| 1365 | + | |
1365 | 1366 | | |
1366 | 1367 | | |
1367 | 1368 | | |
1368 | 1369 | | |
1369 | 1370 | | |
1370 | 1371 | | |
1371 | 1372 | | |
1372 | | - | |
1373 | | - | |
| 1373 | + | |
| 1374 | + | |
| 1375 | + | |
1374 | 1376 | | |
1375 | 1377 | | |
1376 | 1378 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
8 | 8 | | |
9 | 9 | | |
10 | 10 | | |
| 11 | + | |
| 12 | + | |
11 | 13 | | |
12 | 14 | | |
13 | 15 | | |
| |||
194 | 196 | | |
195 | 197 | | |
196 | 198 | | |
197 | | - | |
| 199 | + | |
198 | 200 | | |
199 | 201 | | |
200 | 202 | | |
| |||
214 | 216 | | |
215 | 217 | | |
216 | 218 | | |
217 | | - | |
| 219 | + | |
218 | 220 | | |
0 commit comments