Skip to content

Commit

Permalink
docstring
Browse files Browse the repository at this point in the history
  • Loading branch information
apchytr committed Nov 28, 2024
1 parent ff94a0d commit f04fbc7
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -73,11 +73,17 @@ def set_backend(backend):


def skip_np():
r"""
Skips tests if the backend is numpy.
"""
if math.backend_name == "numpy":
pytest.skip("numpy")


def skip_tf():
r"""
Skips tests if the backend is tensorflow and the version is ``>2.15.0``.
"""
if math.backend_name == "tensorflow":
if Version(metadata.distribution("tensorflow").version) > Version("2.15.0"):
pytest.skip("tensorflow")
Expand Down

0 comments on commit f04fbc7

Please sign in to comment.