You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fails with gpiozero.exc.GPIOPinInUse: pin 15 is already in use by <gpiozero.DigitalInputDevice object on pin GPIO15, pull_up=False, is_active=False>
The text was updated successfully, but these errors were encountered:
An example of how to do this is in the mock_factory fixture in tests/conftest.py
I've also raises PR #1107 to make these fixtures available for import in the future.
Operating system: Ubuntu 22.04.3 LTS
Python version: 3.9.7
Pi model: None.
GPIO Zero version: 1.6.2
Pin factory used: MockFactory
It appears that the MockFactory does not release pins on close().
Is there a better way to release pins in a pytest
teardown_function
?This fails with
gpiozero.exc.GPIOPinInUse: pin 15 is already in use by <gpiozero.DigitalInputDevice object on pin GPIO15, pull_up=False, is_active=False>
The text was updated successfully, but these errors were encountered: