Skip to content

Commit

Permalink
fixing deprecated pytest behavior
Browse files Browse the repository at this point in the history
  • Loading branch information
karllark committed Feb 14, 2024
1 parent c8599e7 commit fbab10e
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion beast/tools/tests/test_verify_beast_settings.py
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import pytest
import warnings
from beast.physicsmodel.stars import isochrone
from beast.tools import verify_beast_settings

Expand Down Expand Up @@ -36,7 +37,8 @@ class settings_mock_allowwarn(settings_mock_nofA):

def test_verifyparams_nowarning():
"""Test: verify_beast_settings for case of no warnings or exceptions."""
with pytest.warns(None) as record:
# with pytest.warns(None) as record:
with warnings.catch_warnings(record=True) as record:
verify_beast_settings.verify_input_format(settings_mock())
assert len(record) == 0

Expand Down

0 comments on commit fbab10e

Please sign in to comment.