Skip to content

Commit

Permalink
exclude numpy errors from coverage
Browse files Browse the repository at this point in the history
  • Loading branch information
YigitElma committed Jul 26, 2024
1 parent 278fce2 commit 8c0c476
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions desc/backend.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
from desc import config as desc_config
from desc import set_device

if os.environ.get("DESC_BACKEND") == "numpy":
if os.environ.get("DESC_BACKEND") == "numpy": # pragma: no cover
use_jax = False
warnings.warn(
"DESC_BACKEND=numpy is deprecated. Please use DESC_BACKEND=jax instead.",
Expand Down Expand Up @@ -43,7 +43,7 @@
+ f"jaxlib version={jaxlib.__version__}, dtype={y.dtype}"
)
del x, y
except ModuleNotFoundError:
except ModuleNotFoundError: # pragma: no cover
use_jax = False
warnings.warn(
colored(
Expand Down

0 comments on commit 8c0c476

Please sign in to comment.