Skip to content

Commit 8e72280

Browse files
authored
Merge pull request #16383 from meeseeksmachine/auto-backport-of-pr-16379-on-v3.2.x
Backport PR #16379 on branch v3.2.x (FIX: catch on message content, not module)
2 parents 9a27b74 + bc3b605 commit 8e72280

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/matplotlib/cbook/__init__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -1341,9 +1341,10 @@ def _check_1d(x):
13411341
# This code should correctly identify and coerce to a
13421342
# numpy array all pandas versions.
13431343
with warnings.catch_warnings(record=True) as w:
1344-
warnings.filterwarnings("always",
1345-
category=DeprecationWarning,
1346-
module='pandas[.*]')
1344+
warnings.filterwarnings(
1345+
"always",
1346+
category=DeprecationWarning,
1347+
message='Support for multi-dimensional indexing')
13471348

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

0 commit comments

Comments
 (0)