From 87303b6083d9fddf916b8c7c35ce87d57e9638f4 Mon Sep 17 00:00:00 2001 From: Robert Wolterman Date: Sat, 31 Dec 2016 04:52:57 +0000 Subject: [PATCH] fixed the issue with the softpwm pytest code for #22 --- test/test_softpwm_setup.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/test/test_softpwm_setup.py b/test/test_softpwm_setup.py index 49a9f91..cf99334 100644 --- a/test/test_softpwm_setup.py +++ b/test/test_softpwm_setup.py @@ -10,6 +10,10 @@ def teardown_module(module): class TestSoftpwmSetup: + + def setup_method(self, test_method): + PWM.cleanup() + def test_start_pwm(self): PWM.start("XIO-P7", 50, 10) base = GPIO.get_gpio_base() + 7