Skip to content

Commit

Permalink
test: fix test set backend
Browse files Browse the repository at this point in the history
  • Loading branch information
BrunoLiegiBastonLiegi committed Jan 29, 2024
1 parent bf883f3 commit b0878fd
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/test_backends_clifford.py
Original file line number Diff line number Diff line change
Expand Up @@ -245,5 +245,8 @@ def test_set_backend(backend):
clifford_bkd = construct_clifford_backend(backend)
if not clifford_bkd:
return
set_backend("clifford", platform=str(backend))
platform = backend.platform
if platform is None:
platform = str(backend)
set_backend("clifford", platform=platform)
assert isinstance(GlobalBackend(), type(clifford_bkd))

0 comments on commit b0878fd

Please sign in to comment.