From 5c5934a8f3efe4dd9db0d3a8d8616a444c195220 Mon Sep 17 00:00:00 2001 From: Andrew Scheller Date: Sat, 20 Feb 2016 13:42:54 +0000 Subject: [PATCH] 'Fixed' test_mock_pin_frequency_unsupported See the discussion at https://github.com/RPi-Distro/python-gpiozero/issues/206#issuecomment-186289488 --- tests/test_mock_pin.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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