Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 90dfdbc

Browse files
tacaswellQuLogic
authored andcommitted
TST: remove tests of (now expired) deprecation warnings
1 parent 8482fc2 commit 90dfdbc

File tree

2 files changed

+0
-14
lines changed

2 files changed

+0
-14
lines changed

lib/matplotlib/tests/test_category.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@
33
import numpy as np
44

55
import matplotlib as mpl
6-
from matplotlib._api import MatplotlibDeprecationWarning
76
from matplotlib.axes import Axes
87
import matplotlib.pyplot as plt
98
import matplotlib.category as cat
@@ -101,17 +100,6 @@ def test_convert(self, vals):
101100
def test_convert_one_string(self, value):
102101
assert self.cc.convert(value, self.unit, self.ax) == 0
103102

104-
def test_convert_one_number(self):
105-
with pytest.warns(MatplotlibDeprecationWarning):
106-
actual = self.cc.convert(0.0, self.unit, self.ax)
107-
np.testing.assert_allclose(actual, np.array([0.]))
108-
109-
def test_convert_float_array(self):
110-
data = np.array([1, 2, 3], dtype=float)
111-
with pytest.warns(MatplotlibDeprecationWarning):
112-
actual = self.cc.convert(data, self.unit, self.ax)
113-
np.testing.assert_allclose(actual, np.array([1., 2., 3.]))
114-
115103
@pytest.mark.parametrize("fvals", fvalues, ids=fids)
116104
def test_convert_fail(self, fvals):
117105
with pytest.raises(TypeError):

lib/matplotlib/tests/test_rcparams.py

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -230,8 +230,6 @@ def generate_validator_testcases(valid):
230230
),
231231
'fail': ((set(), ValueError),
232232
(1, ValueError),
233-
((1, 2), _api.MatplotlibDeprecationWarning),
234-
(np.array([1, 2]), _api.MatplotlibDeprecationWarning),
235233
)
236234
},
237235
{'validator': _listify_validator(validate_int, n=2),

0 commit comments

Comments
 (0)