From b7c0ea24d2a95cfbcf3632907a07c2f81cc0ed4a Mon Sep 17 00:00:00 2001 From: James Nightingale Date: Sun, 24 Mar 2024 16:48:17 +0000 Subject: [PATCH] test specific warning caught --- test_autofit/non_linear/test_fit_sequential.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/test_autofit/non_linear/test_fit_sequential.py b/test_autofit/non_linear/test_fit_sequential.py index 320f0948e..1e940b003 100644 --- a/test_autofit/non_linear/test_fit_sequential.py +++ b/test_autofit/non_linear/test_fit_sequential.py @@ -1,4 +1,5 @@ import os +import warnings from pathlib import Path from random import random @@ -35,7 +36,9 @@ def count_output(paths): def test_with_model(analysis, model, search): combined_analysis = sum([analysis.with_model(model) for _ in range(10)]) - result = search.fit_sequential(model=model, analysis=combined_analysis) + with warnings.catch_warnings(): + warnings.simplefilter("ignore") + result = search.fit_sequential(model=model, analysis=combined_analysis) assert count_output(search.paths) == 10 assert len(result.child_results) == 10