Skip to content

Commit

Permalink
Properly skip live tests when hss solvers unavailable
Browse files Browse the repository at this point in the history
Missed a case in dwavesystems#544.
  • Loading branch information
randomir committed Nov 29, 2024
1 parent ea016b6 commit 7c8e2cd
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 7c8e2cd

Please sign in to comment.