mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2025-10-29 17:50:37 +00:00
Merge pull request #210 from lurch/patch-1
'Fix' test_mock_pin_frequency_unsupported
This commit is contained in:
@@ -24,7 +24,7 @@ def test_mock_pin_init():
|
|||||||
assert MockPin(2).number == 2
|
assert MockPin(2).number == 2
|
||||||
|
|
||||||
def test_mock_pin_frequency_unsupported():
|
def test_mock_pin_frequency_unsupported():
|
||||||
with pytest.raises(AttributeError):
|
with pytest.raises(PinPWMUnsupported):
|
||||||
pin = MockPin(3)
|
pin = MockPin(3)
|
||||||
pin.frequency = 100
|
pin.frequency = 100
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user