Skip to content

Commit 2d0ec57

Browse files
committed
TST: disable checks for ChainedAssignmentError in tests
1 parent 3f708df commit 2d0ec57

File tree

2 files changed

+6
-2
lines changed

2 files changed

+6
-2
lines changed

pandas/_testing/contexts.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@
1212
)
1313
import uuid
1414

15-
from pandas.compat import PYPY
15+
from pandas.compat import PYPY, WARNING_CHECK_BROKEN
1616
from pandas.errors import ChainedAssignmentError
1717

1818
from pandas.io.common import get_handle
@@ -163,7 +163,7 @@ def with_csv_dialect(name: str, **kwargs) -> Generator[None]:
163163
def raises_chained_assignment_error(extra_warnings=(), extra_match=()):
164164
from pandas._testing import assert_produces_warning
165165

166-
if PYPY:
166+
if PYPY or WARNING_CHECK_BROKEN:
167167
if not extra_warnings:
168168
from contextlib import nullcontext
169169

pandas/compat/__init__.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,8 +20,10 @@
2020
ISMUSL,
2121
PY311,
2222
PY312,
23+
PY314,
2324
PYPY,
2425
WASM,
26+
WARNING_CHECK_BROKEN,
2527
)
2628
from pandas.compat.numpy import is_numpy_dev
2729
from pandas.compat.pyarrow import (
@@ -157,7 +159,9 @@ def is_ci_environment() -> bool:
157159
"ISMUSL",
158160
"PY311",
159161
"PY312",
162+
"PY314",
160163
"PYPY",
164+
"WARNING_CHECK_BROKEN",
161165
"WASM",
162166
"is_numpy_dev",
163167
"pa_version_under12p1",

0 commit comments

Comments
 (0)