Skip to content

Commit 748a8e0

Browse files
committed
added warning in 'ignored_doctest_warnings'
1 parent 4f8814a commit 748a8e0

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

pandas/conftest.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -137,6 +137,10 @@ def pytest_collection_modifyitems(items, config) -> None:
137137
ignored_doctest_warnings = [
138138
# Docstring divides by zero to show behavior difference
139139
("missing.mask_zero_div_zero", "divide by zero encountered"),
140+
(
141+
"pandas.core.generic.py",
142+
"NDFrame.bool is deprecated and will removed in a future version",
143+
),
140144
]
141145

142146
for item in items:

pandas/tests/generic/test_generic.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -444,7 +444,7 @@ def test_flags_identity(self, frame_or_series):
444444

445445
def test_bool_dep(self) -> None:
446446
msg = (
447-
"NDFRame.bool is now deprecated and will be removed in future releases "
447+
"NDFrame.bool is now deprecated and will be removed in future releases "
448448
"and cases that relied on it will raise in a future version"
449449
)
450450
with tm.assert_produces_warning(FutureWarning, match=msg):

0 commit comments

Comments
 (0)