diff --git a/geometry/render_gltf_client/test/integration_test.py b/geometry/render_gltf_client/test/integration_test.py index 1554b6a8e33c..c3332af5f706 100644 --- a/geometry/render_gltf_client/test/integration_test.py +++ b/geometry/render_gltf_client/test/integration_test.py @@ -35,6 +35,11 @@ LABEL_PIXEL_THRESHOLD = 0 INVALID_PIXEL_FRACTION = 0.2 +# TODO(#19305) Remove this once the skipped tests reliably pass on macOS. +_SKIP = False +if "darwin" in sys.platform: + _SKIP = True + class TestIntegration(unittest.TestCase): def setUp(self): @@ -215,6 +220,7 @@ def _check_one_gltf(self, gltf, ground_truth_gltf): # normalization, e.g., meshes, cameras, materials, accessors, etc. self.assertCountEqual(actual["nodes"], expected["nodes"]) + @unittest.skipIf(_SKIP, "Skipped on macOS, see #19305") def test_integration(self): """Quantitatively compares the images rendered by RenderEngineVtk and RenderEngineGltfClient via a fully exercised RPC pipeline. @@ -260,6 +266,7 @@ def test_integration(self): ) self.assert_error_fraction_less(label_diff, INVALID_PIXEL_FRACTION) + @unittest.skipIf(_SKIP, "Skipped on macOS, see #19305") def test_gltf_conversion(self): """Checks that the fundamental structure of the generated glTF files is preserved. The comparison of the exact texture information is not in