From a216709acf972bee00d349d108483f63dcdaaba5 Mon Sep 17 00:00:00 2001 From: Nicholas Felt Date: Mon, 4 Dec 2023 14:02:41 -0800 Subject: [PATCH] test: Update tests to try to eliminate false failures when running tests on macOS. --- tests/test_afgs.py | 1 - tests/test_smu.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/test_afgs.py b/tests/test_afgs.py index 70a1e6b9..d6917974 100644 --- a/tests/test_afgs.py +++ b/tests/test_afgs.py @@ -30,7 +30,6 @@ def test_afg3kc(device_manager: DeviceManager) -> None: assert afg3kc.idn_string == "TEKTRONIX,AFG3252C,SERIAL1,SCPI:99.0 FV:3.2.3" assert afg3kc.sw_version == Version("3.2.3") assert afg3kc.all_channel_names_list == ("SOURCE1", "SOURCE2") - assert afg3kc.visa_backend == "PyVISA-sim" assert afg3kc.source_device_constants == AFGSourceDeviceConstants( memory_page_size=2, memory_max_record_length=128 * 1024, diff --git a/tests/test_smu.py b/tests/test_smu.py index 22cb0dc8..7e2f4f66 100644 --- a/tests/test_smu.py +++ b/tests/test_smu.py @@ -150,7 +150,7 @@ def test_smu( # noqa: PLR0915 sw_version= total_channels=1 verbose=True - visa_backend='PyVISA-sim' + visa_backend='{smu.visa_backend}' visa_resource=<'TCPIPInstrument'('TCPIP0::SMU2601B-HOSTNAME::inst0::INSTR')> visa_timeout={UNIT_TEST_TIMEOUT} {'=' * (97 + (1 if smu.device_number >= 10 else 0))}