Skip to content

Commit

Permalink
move the time-comsuming test out of main test
Browse files Browse the repository at this point in the history
Signed-off-by: Jinzhe Zeng <jinzhe.zeng@rutgers.edu>
  • Loading branch information
njzjz committed Nov 9, 2024
1 parent c94302d commit b0a496c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions source/tests/consistent/io/test_io.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,14 +73,12 @@ def tearDown(self):
shutil.rmtree(ii)

@unittest.skipIf(TEST_DEVICE != "cpu" and CI, "Only test on CPU.")
@unittest.skipIf(DP_TEST_TF2_ONLY, "Conflict with TF2 eager mode.")
def test_data_equal(self):
prefix = "test_consistent_io_" + self.__class__.__name__.lower()
for backend_name, suffix_idx in (
("tensorflow", 0),
("tensorflow", 0) if not DP_TEST_TF2_ONLY else ("jax", 0),
("pytorch", 0),
("dpmodel", 0),
("jax", 0),
):
with self.subTest(backend_name=backend_name):
backend = Backend.get_backend(backend_name)()
Expand Down Expand Up @@ -148,8 +146,10 @@ def test_deep_eval(self):
("jax", 2) if DP_TEST_TF2_ONLY else ("tensorflow", 0),
("pytorch", 0),
("dpmodel", 0),
("jax", 0),
("jax", 0) if DP_TEST_TF2_ONLY else (None, None),
):
if backend_name is None:
continue
backend = Backend.get_backend(backend_name)()
if not backend.is_available():
continue
Expand Down

0 comments on commit b0a496c

Please sign in to comment.