Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 7633da2 + 875dbf0 commit dd434d6Copy full SHA for dd434d6
1 file changed
lib/matplotlib/tests/test_figure.py
@@ -189,9 +189,6 @@ def test_figure_legend():
189
def test_gca():
190
fig = plt.figure()
191
192
- with pytest.raises(TypeError):
193
- assert fig.add_axes() is None
194
-
195
ax0 = fig.add_axes([0, 0, 1, 1])
196
with pytest.warns(
197
MatplotlibDeprecationWarning,
@@ -476,6 +473,10 @@ def test_invalid_figure_size(width, height):
476
473
477
474
def test_invalid_figure_add_axes():
478
475
+ with pytest.raises(TypeError,
+ match="missing 1 required positional argument: 'rect'"):
+ fig.add_axes()
479
+
480
with pytest.raises(ValueError):
481
fig.add_axes((.1, .1, .5, np.nan))
482
0 commit comments