From 0a7e4fa5cee7dcb6ce060bef37d4eae5e6f06503 Mon Sep 17 00:00:00 2001 From: Daniel Campora Date: Sun, 27 Sep 2015 13:18:12 +0200 Subject: tests/wipy: Improve robustness of rtc_irq test. --- tests/wipy/rtc.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/wipy/rtc.py') diff --git a/tests/wipy/rtc.py b/tests/wipy/rtc.py index 9f4a0f673..ca6a34267 100644 --- a/tests/wipy/rtc.py +++ b/tests/wipy/rtc.py @@ -82,6 +82,8 @@ rtc.alarm(time=(2015, 8, 29, 9, 0, 45)) time.sleep_ms(1000) left = rtc.alarm_left() print(abs(left-44000) <= 90) +rtc.alarm_cancel() +rtc.deinit() # next ones must raise try: -- cgit v1.2.3