Skip to content

Commit

Permalink
GPIB address change due to changes in pyvisa_sim
Browse files Browse the repository at this point in the history
  • Loading branch information
trevormorgan committed Oct 19, 2020
1 parent 9bada8d commit c203006
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions qcodes/tests/test_wrong_address.py
Expand Up @@ -12,15 +12,15 @@


def test_wrong_address():
wrong_address = 'GPIB::2::INSTR'
wrong_address = 'GPIB0::2::0::INSTR'

match_str = re.escape(f'ERROR: resource {wrong_address} not found')
with pytest.raises(Exception, match=match_str) as exc_info:
_ = Keysight_34465A('keysight_34465A_sim',
address=wrong_address,
visalib=visalib)

right_address = 'GPIB::1::INSTR' # from the simulation yaml file
right_address = 'GPIB0::1::0::INSTR' # from the simulation yaml file

inst = Keysight_34465A('keysight_34465A_sim',
address=right_address,
Expand Down

0 comments on commit c203006

Please sign in to comment.