Commit 1d1d1e6
committed
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.1 parent 696d78c commit 1d1d1e6
2 files changed
+8
-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 | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
| 10 | + | |
10 | 11 | | |
11 | 12 | | |
12 | 13 | | |
| |||
194 | 195 | | |
195 | 196 | | |
196 | 197 | | |
197 | | - | |
| 198 | + | |
198 | 199 | | |
199 | 200 | | |
200 | 201 | | |
| |||
214 | 215 | | |
215 | 216 | | |
216 | 217 | | |
217 | | - | |
| 218 | + | |
218 | 219 | | |
0 commit comments