diff --git a/lib/matplotlib/tests/test_axes.py b/lib/matplotlib/tests/test_axes.py index a885afe70c91..9f0272fa1269 100644 --- a/lib/matplotlib/tests/test_axes.py +++ b/lib/matplotlib/tests/test_axes.py @@ -6263,7 +6263,7 @@ def test_zoom_inset(): fig.canvas.draw() xx = np.array([[1.5, 2.], [2.15, 2.5]]) - assert(np.all(rec.get_bbox().get_points() == xx)) + assert np.all(rec.get_bbox().get_points() == xx) xx = np.array([[0.6325, 0.692308], [0.8425, 0.907692]]) np.testing.assert_allclose( diff --git a/lib/matplotlib/tests/test_preprocess_data.py b/lib/matplotlib/tests/test_preprocess_data.py index 84e40568c9c2..c4013ec27a6e 100644 --- a/lib/matplotlib/tests/test_preprocess_data.py +++ b/lib/matplotlib/tests/test_preprocess_data.py @@ -80,7 +80,7 @@ def test_function_call_without_data(func): def test_function_call_with_dict_input(func): """Tests with dict input, unpacking via preprocess_pipeline""" data = {'a': 1, 'b': 2} - assert(func(None, data.keys(), data.values()) == + assert (func(None, data.keys(), data.values()) == "x: ['a', 'b'], y: [1, 2], ls: x, w: xyz, label: None")