mirror of
https://github.com/Farama-Foundation/Gymnasium.git
synced 2025-08-20 22:12:03 +00:00
Skip Jax and PyTorch tests if module is missing (#466)
This commit is contained in:
@@ -1,16 +1,18 @@
|
||||
"""Test suite for JaxToNumpyV0."""
|
||||
|
||||
import jax.numpy as jnp
|
||||
import numpy as np
|
||||
import pytest
|
||||
|
||||
from gymnasium.experimental.wrappers.jax_to_numpy import (
|
||||
|
||||
jnp = pytest.importorskip("jax.numpy")
|
||||
|
||||
from gymnasium.experimental.wrappers.jax_to_numpy import ( # noqa: E402
|
||||
JaxToNumpyV0,
|
||||
jax_to_numpy,
|
||||
numpy_to_jax,
|
||||
)
|
||||
from gymnasium.utils.env_checker import data_equivalence
|
||||
from tests.testing_env import GenericTestEnv
|
||||
from gymnasium.utils.env_checker import data_equivalence # noqa: E402
|
||||
from tests.testing_env import GenericTestEnv # noqa: E402
|
||||
|
||||
|
||||
@pytest.mark.parametrize(
|
||||
|
Reference in New Issue
Block a user