Skip to content

Commit

Permalink
Remove test of outdated feature
Browse files Browse the repository at this point in the history
  • Loading branch information
jenshnielsen committed Jun 2, 2022
1 parent f0acb98 commit 3c5faad
Showing 1 changed file with 4 additions and 16 deletions.
20 changes: 4 additions & 16 deletions qcodes/tests/test_visa.py
Original file line number Diff line number Diff line change
Expand Up @@ -165,25 +165,13 @@ def open_resource(self, address):
assert address_opened[0] == 'ASRL2'
inst2.close()

# this one raises a warning
with pytest.warns(UserWarning, match="use the visalib"):
inst3 = MockBackendVisaInstrument('name3', address='ASRL3@py')
request.addfinalizer(inst3.close)

inst3 = MockBackendVisaInstrument("name3", address="ASRL3", visalib="@py")
request.addfinalizer(inst3.close)
assert rm_mock.call_count == 3
assert rm_mock.call_args == (('@py',),)
assert address_opened[0] == 'ASRL3'
assert rm_mock.call_args == (("@py",),)
assert address_opened[0] == "ASRL3"
inst3.close()

# this one doesn't
inst4 = MockBackendVisaInstrument('name4',
address='ASRL4', visalib='@py')
request.addfinalizer(inst4.close)
assert rm_mock.call_count == 4
assert rm_mock.call_args == (('@py',),)
assert address_opened[0] == 'ASRL4'
inst4.close()


def test_visa_instr_metadata(request):
metadatadict = {'foo': 'bar'}
Expand Down

0 comments on commit 3c5faad

Please sign in to comment.