Skip to content

Commit

Permalink
Fix windows tests
Browse files Browse the repository at this point in the history
  • Loading branch information
priyanshuone6 committed Nov 2, 2021
1 parent eecc1fe commit 60378f1
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 12 deletions.
11 changes: 5 additions & 6 deletions tests/unit/test_solvers/test_jax_bdf_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
import numpy as np
from platform import system, version

if not (system() == "Windows" or (system() == "Darwin" and "ARM64" in version())):
try:
import jax
HAVE_JAX = True
except ImportError:
HAVE_JAX = False
try:
import jax
HAVE_JAX = True
except ImportError:
HAVE_JAX = False


@unittest.skipIf(
Expand Down
11 changes: 5 additions & 6 deletions tests/unit/test_solvers/test_jax_solver.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,11 @@
import numpy as np
from platform import system, version

if not (system() == "Windows" or (system() == "Darwin" and "ARM64" in version())):
try:
import jax
HAVE_JAX = True
except ImportError:
HAVE_JAX = False
try:
import jax
HAVE_JAX = True
except ImportError:
HAVE_JAX = False


@unittest.skipIf(
Expand Down

0 comments on commit 60378f1

Please sign in to comment.