'Fixed' test_mock_pin_frequency_unsupported

See the discussion at https://github.com/RPi-Distro/python-gpiozero/issues/206#issuecomment-186289488
This commit is contained in:
Andrew Scheller
2016-02-20 13:42:54 +00:00
parent b1943c978e
commit 5c5934a8f3

View File

@@ -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