Skip to content

Commit

Permalink
Merge pull request #547 from randomir/fix/skip-hybrid-common-qpu-test…
Browse files Browse the repository at this point in the history
…s-when-api-unavailable

Skip live hybrid tests missed in #544
  • Loading branch information
randomir authored Nov 29, 2024
2 parents ea016b6 + 7c8e2cd commit a141cdb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tests/qpu/test_leaphybrid_common.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,8 +97,11 @@ class TestSamplesetInterface(unittest.TestCase):

def test_wait_id_availability(self):
# verify https://github.com/dwavesystems/dwave-system/issues/540 is fixed
try:
sampler = self.sampler_cls()
except (ValueError, ConfigFileError):
raise unittest.SkipTest(f"{self.sampler_cls} not available")

sampler = self.sampler_cls()
problem = self.problem_gen()
ss = getattr(sampler, self.sample_meth)(problem)

Expand Down

0 comments on commit a141cdb

Please sign in to comment.