diff --git a/lib/matplotlib/tests/test_figure.py b/lib/matplotlib/tests/test_figure.py index 966f127df6ff..74f7b6bf8213 100644 --- a/lib/matplotlib/tests/test_figure.py +++ b/lib/matplotlib/tests/test_figure.py @@ -581,7 +581,7 @@ def test_invalid_layouts(): with pytest.warns(UserWarning): # this should warn, fig.subplots_adjust(top=0.8) - assert not(fig.get_constrained_layout()) + assert not fig.get_constrained_layout() # Using layout + (tight|constrained)_layout warns, but the former takes # precedence.