Commit 36648d6
chore: fix pytest crash on pandas 3.0 due to missing SettingWithCopyWarning
The `SettingWithCopyWarning` has been removed in pandas 3.0. Having it in `pytest.ini`'s `filterwarnings` caused pytest to crash on startup when resolving the warning class. This change moves the suppression to `conftest.py` where it is applied conditionally only if the warning class exists.1 parent dbb0339 commit 36648d6
2 files changed
+7
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
14 | 14 | | |
15 | 15 | | |
16 | 16 | | |
| 17 | + | |
| 18 | + | |
17 | 19 | | |
18 | 20 | | |
19 | 21 | | |
20 | 22 | | |
21 | 23 | | |
22 | 24 | | |
23 | 25 | | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
24 | 31 | | |
25 | 32 | | |
26 | 33 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
4 | | - | |
5 | 3 | | |
0 commit comments