diff --git a/tests/test_ABC_weighting.py b/tests/test_ABC_weighting.py index 687139e..f429a5b 100644 --- a/tests/test_ABC_weighting.py +++ b/tests/test_ABC_weighting.py @@ -101,7 +101,7 @@ def test_freq_resp(self): class TestAWeighting: def test_invalid_params(self): - with pytest.raises(ValueError): + with pytest.raises((ValueError, TypeError)): A_weighting(fs='spam') with pytest.raises(ValueError): diff --git a/tests/test_ITU_R_468_weighting.py b/tests/test_ITU_R_468_weighting.py index 15f0861..db29fcf 100644 --- a/tests/test_ITU_R_468_weighting.py +++ b/tests/test_ITU_R_468_weighting.py @@ -72,7 +72,7 @@ def test_freq_resp(self): class TestITU468Weighting: def test_invalid_params(self): - with pytest.raises(ValueError): + with pytest.raises((ValueError, TypeError)): ITU_R_468_weighting(fs='spam') with pytest.raises(ValueError):