8000 Correct regex in filterwarnings · matplotlib/matplotlib@d9c9c55 · GitHub
[go: up one dir, main page]

Skip to content

Commit d9c9c55

Browse files
committed
Correct regex in filterwarnings
The method name has changed, also enable an assert which should have been enabled earlier
1 parent 6e684d1 commit d9c9c55

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

lib/matplotlib/tests/test_subplots.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -110,11 +110,10 @@ def test_exceptions():
110110
# the pount of this test is to ensure that this raises.
111111
with warnings.catch_warnings():
112112
warnings.filterwarnings('ignore',
113-
message='.*sharex\ argument\ to\ subplots',
113+
message='.*sharex\ argument\ to\ add_subplots',
114114
category=UserWarning)
115115
assert_raises(ValueError, plt.subplots, 2, 2, -1)
116-
# uncomment this for 1.5
117-
# assert_raises(ValueError, plt.subplots, 2, 2, 0)
116+
assert_raises(ValueError, plt.subplots, 2, 2, 0)
118117
assert_raises(ValueError, plt.subplots, 2, 2, 5)
119118

120119

0 commit comments

Comments
 (0)
0