Skip to content

Commit

Permalink
Skipping tests if CPP binary is available
Browse files Browse the repository at this point in the history
  • Loading branch information
PietropaoloFrisoni committed Apr 25, 2024
1 parent 9ef5625 commit 6a894ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions tests/lightning_tensor/test_lightning_tensor.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
if not LightningDevice._new_API:
pytest.skip("Exclusive tests for new API. Skipping.", allow_module_level=True)

# if LightningDevice._CPP_BINARY_AVAILABLE:
# pytest.skip("Device doesn't have C++ support yet.", allow_module_level=True)
if LightningDevice._CPP_BINARY_AVAILABLE:
pytest.skip("Device doesn't have C++ support yet.", allow_module_level=True)


@pytest.mark.parametrize("num_wires", [None, 4])
Expand Down
4 changes: 2 additions & 2 deletions tests/lightning_tensor/test_quimb_mps.py
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,8 @@
if not LightningDevice._new_API:
pytest.skip("Exclusive tests for new API. Skipping.", allow_module_level=True)

# if LightningDevice._CPP_BINARY_AVAILABLE:
# pytest.skip("Device doesn't have C++ support yet.", allow_module_level=True)
if LightningDevice._CPP_BINARY_AVAILABLE:
pytest.skip("Device doesn't have C++ support yet.", allow_module_level=True)


@pytest.mark.parametrize("backend", ["quimb"])
Expand Down

0 comments on commit 6a894ca

Please sign in to comment.