diff --git a/tardis/simulation/tests/test_simulation.py b/tardis/simulation/tests/test_simulation.py index 688d4b98cb2..d960ac2f253 100644 --- a/tardis/simulation/tests/test_simulation.py +++ b/tardis/simulation/tests/test_simulation.py @@ -212,6 +212,7 @@ def test_logging_config(atomic_data_fname, caplog, log_state, specific): "ERROR": logging.ERROR, "CRITICAL": logging.CRITICAL, } + caplog.clear() run_tardis(config=config, log_state=log_state, specific=specific) for record in caplog.records: if specific == True: @@ -257,6 +258,7 @@ def test_logging_config_yaml(atomic_data_fname, caplog, log_state, specific): "ERROR": logging.ERROR, "CRITICAL": logging.CRITICAL, } + caplog.clear() run_tardis(config=config) for record in caplog.records: if specific == True: