Closed lucask07 closed 2 years ago
@lucask07 I created a power_supply fixture with a "session" scope in the conftest.py file in the packaging branch. Can you check that this fixed the issue? I believe it is linked to that commit so it should automatically close this issue when that pull request (#12) goes through
Tried to fix in #12 with 714d01c9fce775534182cdd80cc855679f6e2347, didn't seem to work.
@Ajstros this worked and enabled no_fpga testing with the MAC. Realized that the only reason it is needed is because the current NI-VISA and MAC Monterey are not compatible.
At line 43 of
DAC80508_ADS8686_test.py
an instrument is opened:dc_pwr, dc_pwr2 = open_rigol_supply(setup=pwr_setup) # 7V and +/-16.5V, None
This fails during pytest collection on a Mac when not connected to the instrument.
python3 -m pytest -m no_fpga
I explored the pytest flag of
--continue-on-collection-errors
yet this did not remove the error since a Fatal Python error occurs.Would it be possible to move
open_rigol_supply
to a fixture/function so that it only happens if the test is run (rather than just collected?)The terminal error message: