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