Skip to content

Commit

Permalink
handle that newer versions of qcodes does not register broken instrum…
Browse files Browse the repository at this point in the history
…ents
  • Loading branch information
jenshnielsen committed Feb 10, 2022
1 parent 422d631 commit bd21dd8
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion qcodes_contrib_drivers/tests/QDevil/test_sim_qdac2_init.py
Expand Up @@ -23,4 +23,8 @@ def test_refuse_incompatible_firmware():
# -----------------------------------------------------------------------
assert 'Incompatible firmware' in repr(error)
# Circumvent Instrument not handling exceptions in constructor.
Instrument._all_instruments.pop('qdac')
# In qcodes < 0.32
try:
Instrument._all_instruments.pop('qdac')
except KeyError:
pass

0 comments on commit bd21dd8

Please sign in to comment.