Skip to content

Commit

Permalink
test specific warning caught
Browse files Browse the repository at this point in the history
  • Loading branch information
Jammy2211 committed Mar 24, 2024
1 parent a19357a commit b7c0ea2
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion test_autofit/non_linear/test_fit_sequential.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import os
import warnings
from pathlib import Path
from random import random

Expand Down Expand Up @@ -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
Expand Down

0 comments on commit b7c0ea2

Please sign in to comment.