diff --git a/tests_automatic/test_surface3d_automatic.py b/tests_automatic/test_surface3d_automatic.py
index 2e47cceb401f6c28cf3aa4bdad99330a55f7d8a6..6aa29d4eb0f818e70bc2b625fa83c801447a046e 100644
--- a/tests_automatic/test_surface3d_automatic.py
+++ b/tests_automatic/test_surface3d_automatic.py
@@ -40,10 +40,10 @@ def test_surface_properties(
     _, serializer_ax = serializer.subplots(subplot_kw={"projection": "3d"})
     _fig, ax = plt.subplots(subplot_kw={"projection": "3d"})
     try:
-        ax.plot_surface(x, y, z)
+        ax.plot_surface(x, y, z)  # type: ignore
     except Exception as _e:
         plt.close()
     else:
-        serializer_ax.plot_surface(x, y, z)  # type: ignore
+        serializer_ax.plot_surface(x, y, z)
         assert serializer.to_json() != "{}", "Serialized JSON is empty check input"
         plt.close()