|
3 | 3 | import numpy as np
|
4 | 4 |
|
5 | 5 | import matplotlib as mpl
|
6 |
| -from matplotlib._api import MatplotlibDeprecationWarning |
7 | 6 | from matplotlib.axes import Axes
|
8 | 7 | import matplotlib.pyplot as plt
|
9 | 8 | import matplotlib.category as cat
|
@@ -101,17 +100,6 @@ def test_convert(self, vals):
|
101 | 100 | def test_convert_one_string(self, value):
|
102 | 101 | assert self.cc.convert(value, self.unit, self.ax) == 0
|
103 | 102 |
|
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 |
| - |
115 | 103 | @pytest.mark.parametrize("fvals", fvalues, ids=fids)
|
116 | 104 | def test_convert_fail(self, fvals):
|
117 | 105 | with pytest.raises(TypeError):
|
|
0 commit comments