From 492cb7d07896c88a48fb2e14f0ae7eaaac81d863 Mon Sep 17 00:00:00 2001 From: Abhishek Joshi Date: Mon, 19 Aug 2024 11:19:18 -0500 Subject: [PATCH] Remove try catch in exporter test --- python/mujoco/usd/exporter_test.py | 13 +------------ 1 file changed, 1 insertion(+), 12 deletions(-) diff --git a/python/mujoco/usd/exporter_test.py b/python/mujoco/usd/exporter_test.py index 5b1ba255..9c5f8043 100644 --- a/python/mujoco/usd/exporter_test.py +++ b/python/mujoco/usd/exporter_test.py @@ -20,22 +20,11 @@ import os from absl.testing import absltest from etils import epath import mujoco - - -# USD is not fully supported on all MuJoCo architectures. -execute_test = True -try: - from mujoco.usd import exporter as exporter_module # pylint: disable=g-import-not-at-top -except ImportError: - logging.warning("Skipping test due to missing import") - execute_test = False - +from mujoco.usd import exporter as exporter_module # pylint: disable=g-import-not-at-top class ExporterTest(absltest.TestCase): def test_usd_export(self): - if not execute_test: - self.fail("Test test_usd_export failed to execute.") output_dir_root = os.getenv("TEST_UNDECLARED_OUTPUTS_DIR") output_dir_name = "usd_test"