Skip to content

Commit

Permalink
Skipping test_couplers on platforms without couplers
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielePalazzo committed Nov 10, 2023
1 parent 0faf7ce commit c09d169
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions tests/test_platform.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,6 +97,8 @@ def test_platform_execute_one_drive_pulse(qpu_platform):
def test_platform_execute_one_coupler_pulse(qpu_platform):
# One drive pulse
platform = qpu_platform
if len(platform.couplers) == 0:
pytest.skip("The platform does not have couplers")
coupler = next(iter(platform.couplers))
sequence = PulseSequence()
sequence.add(platform.create_coupler_pulse(coupler, start=0, duration=200, amplitude=1))
Expand Down

0 comments on commit c09d169

Please sign in to comment.