Skip to content

Commit

Permalink
test: Catch errors in uniform and non-redundant way
Browse files Browse the repository at this point in the history
  • Loading branch information
alecandido committed Aug 28, 2024
1 parent cbeb1c0 commit 79b9b07
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tests/conftest.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,13 @@ def get_backend(backend_name):
AVAILABLE_BACKENDS.append(backend_name)
if _backend.supports_multigpu: # pragma: no cover
MULTIGPU_BACKENDS.append(backend_name)
except (ModuleNotFoundError, ImportError):
except ImportError:
pass

try:
get_backend("qulacs")
QULACS_INSTALLED = True
except ModuleNotFoundError:
except ImportError:
QULACS_INSTALLED = False


Expand Down

0 comments on commit 79b9b07

Please sign in to comment.