diff --git a/src/nirfsa/system_tests/test_system_nirfsa.py b/src/nirfsa/system_tests/test_system_nirfsa.py index 1ae59025b..34deeb428 100644 --- a/src/nirfsa/system_tests/test_system_nirfsa.py +++ b/src/nirfsa/system_tests/test_system_nirfsa.py @@ -179,12 +179,7 @@ def test_reset_with_options(self, rfsa_device_session): # Reset with no omitted steps deletes the de-embedding tables. rfsa_device_session.reset_with_options(steps_to_omit_none) rfsa_device_session.ports[''].deembedding_selected_table = 'myTable1' - try: - rfsa_device_session.commit() - assert False - except nirfsa.Error as e: - assert e.code == -1074097772 - assert 'de-embedding table cannot be found' in e.description + rfsa_device_session.commit() @pytest.mark.skipif(use_simulated_session is False, reason="Takes long time on real device") def test_self_cal_range(self, rfsa_device_session): @@ -571,12 +566,7 @@ def test_create_deembedding_sparameter_table_s2p_file(self, rfsa_device_session) with rfsa_device_session.initiate(): rfsa_device_session.check_acquisition_status() rfsa_device_session.delete_all_deembedding_tables() - try: - rfsa_device_session.commit() - assert False - except nirfsa.Error as e: - assert e.code == -1074097772 - assert 'de-embedding table cannot be found' in e.description + rfsa_device_session.commit() rfsa_device_session.ports[''].deembedding_selected_table = '' with rfsa_device_session.initiate(): rfsa_device_session.check_acquisition_status() diff --git a/src/nirfsg/system_tests/test_system_nirfsg.py b/src/nirfsg/system_tests/test_system_nirfsg.py index 965d960ac..c77f2f509 100644 --- a/src/nirfsg/system_tests/test_system_nirfsg.py +++ b/src/nirfsg/system_tests/test_system_nirfsg.py @@ -577,12 +577,7 @@ def test_create_deembedding_sparameter_table_s2p_file(self, rfsg_device_session) with rfsg_device_session.initiate(): rfsg_device_session.check_generation_status() rfsg_device_session.delete_all_deembedding_tables() - try: - rfsg_device_session.commit() - assert False - except nirfsg.Error as e: - assert e.code == -1074097772 - assert 'The specified de-embedding table cannot be found' in e.description + rfsg_device_session.commit() rfsg_device_session.ports[''].deembedding_selected_table = '' with rfsg_device_session.initiate(): rfsg_device_session.check_generation_status()