Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit 90dfdbc

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

File tree

Expand file treeCollapse file tree

2 files changed

+0
-14
lines changed
Filter options
Expand file treeCollapse file tree

2 files changed

+0
-14
lines changed

‎lib/matplotlib/tests/test_category.py

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_category.py
-12Lines 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

Copy file name to clipboardExpand all lines: lib/matplotlib/tests/test_rcparams.py
-2Lines 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 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.