We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 24b9501 commit 22d23f3Copy full SHA for 22d23f3
pandas/_testing/_warnings.py
@@ -13,6 +13,8 @@
13
)
14
import warnings
15
16
+from pandas.compat import PY311
17
+
18
if TYPE_CHECKING:
19
from collections.abc import (
20
Generator,
@@ -179,6 +181,11 @@ def _assert_caught_no_extra_warnings(
179
181
# due to these open files.
180
182
if any("matplotlib" in mod for mod in sys.modules):
183
continue
184
+ if PY311 and actual_warning.category == EncodingWarning:
185
+ # EncodingWarnings are checked in the CI
186
+ # pyproject.toml errors on EncodingWarnings in pandas
187
+ # Ignore EncodingWarnings from other libraries
188
+ continue
189
extra_warnings.append(
190
(
191
actual_warning.category.__name__,
0 commit comments