diff --git a/tests/test_mock_pin.py b/tests/test_mock_pin.py index 77b0c46..d5262ff 100644 --- a/tests/test_mock_pin.py +++ b/tests/test_mock_pin.py @@ -24,7 +24,7 @@ def test_mock_pin_init(): assert MockPin(2).number == 2 def test_mock_pin_frequency_unsupported(): - with pytest.raises(AttributeError): + with pytest.raises(PinPWMUnsupported): pin = MockPin(3) pin.frequency = 100