We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 756762d commit 8476280Copy full SHA for 8476280
1 file changed
tests/tests.py
@@ -75,13 +75,8 @@ def test_param_checks(pop_and_params):
75
pop.params["imf_type"] = 8
76
# fix the invalid IMF but leave the invalid sf_start > tage
77
pop.params["imf_type"] = 1
78
- try:
79
- # This *should* still raise an AssertionError
+ with pytest.raises(AssertionError):
80
w, s = pop.get_spectrum(tage=pop.params["tage"])
81
- # Hacky way to make sure the AssertionError still got thrown
82
- raise ValueError("Did not throw exception for invalid sf_start > tage")
83
- except(AssertionError):
84
- pass
85
pop.params["tage"] = 1.0
86
pop.params["sf_start"] = 0.1
87
0 commit comments