mirror of
https://github.com/KevinMidboe/python-gpiozero.git
synced 2026-01-30 13:17:01 +00:00
Work around for longer object lifetimes on pypy
On pypy the subordinate LED objects in RGBLED composite objects do die on failed construction ... eventually. Unfortunately it's not quick enough to prevent the following tests from failing. As we can't know for certain exactly which test is going to follow, it's best to simply clear down the reservation table before each test.
This commit is contained in:
@@ -18,6 +18,7 @@ from gpiozero import *
|
||||
|
||||
def teardown_function(function):
|
||||
Device._pin_factory.reset()
|
||||
Device._reservations.clear()
|
||||
|
||||
|
||||
def test_input_initial_values():
|
||||
|
||||
Reference in New Issue
Block a user