Skip to content

Commit 85e3f1c

Browse files
story645meeseeksmachine
authored andcommitted
Backport PR #16379: FIX: catch on message content, not module
1 parent bbf4c7c commit 85e3f1c

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/cbook/__init__.py

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1414,9 +1414,10 @@ def _check_1d(x):
14141414
# This code should correctly identify and coerce to a
14151415
# numpy array all pandas versions.
14161416
with warnings.catch_warnings(record=True) as w:
1417-
warnings.filterwarnings("always",
1418-
category=DeprecationWarning,
1419-
module='pandas[.*]')
1417+
warnings.filterwarnings(
1418+
"always",
1419+
category=DeprecationWarning,
1420+
message='Support for multi-dimensional indexing')
14201421

14211422
ndim = x[:, None].ndim
14221423
# we have definitely hit a pandas index or series object

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy