diff --git a/pandas/tests/plotting/common.py b/pandas/tests/plotting/common.py index 65d0c3d9fb17d..b7ecc6be43733 100644 --- a/pandas/tests/plotting/common.py +++ b/pandas/tests/plotting/common.py @@ -541,13 +541,9 @@ def _check_plot_works(f, filterwarnings="always", **kwargs): assert_is_valid_plot_return_object(ret) - try: - kwargs["ax"] = fig.add_subplot(212) - ret = f(**kwargs) - except Exception: - pass - else: - assert_is_valid_plot_return_object(ret) + kwargs["ax"] = fig.add_subplot(212) + ret = f(**kwargs) + assert_is_valid_plot_return_object(ret) with ensure_clean(return_filelike=True) as path: plt.savefig(path)