diff --git a/lib/matplotlib/tests/test_inset.py b/lib/matplotlib/tests/test_inset.py index 81528580c723..bbf481c23253 100644 --- a/lib/matplotlib/tests/test_inset.py +++ b/lib/matplotlib/tests/test_inset.py @@ -93,8 +93,10 @@ def test_inset_indicator_zorder(): assert inset.get_zorder() == 42 -@image_comparison(['zoom_inset_connector_styles.png'], remove_text=True, style='mpl20', - tol=0.024 if platform.machine() in ['aarch64', 'arm64'] else 0) +@image_comparison(['zoom_inset_connector_styles.png'], + remove_text=True, style='mpl20', + tol=(0.024 if platform.machine() in ['aarch64', 'arm64', + 'loongarch64'] else 0)) def test_zoom_inset_connector_styles(): fig, axs = plt.subplots(2) for ax in axs: