diff options
Diffstat (limited to 'tests/pyb')
-rw-r--r-- | tests/pyb/can.py | 1 | ||||
-rw-r--r-- | tests/pyb/halerror.py.exp | 2 | ||||
-rw-r--r-- | tests/pyb/rtc.py | 1 |
3 files changed, 3 insertions, 1 deletions
diff --git a/tests/pyb/can.py b/tests/pyb/can.py index cf8089a3bd..594d1d5093 100644 --- a/tests/pyb/can.py +++ b/tests/pyb/can.py @@ -8,6 +8,7 @@ for bus in (-1, 0, 1, 2, 3, "YA", "YB", "YC"): print("CAN", bus) except ValueError: print("ValueError", bus) +CAN(1).deinit() CAN.initfilterbanks(14) can = CAN(1) diff --git a/tests/pyb/halerror.py.exp b/tests/pyb/halerror.py.exp index 09c9f7ad92..0f3f26253d 100644 --- a/tests/pyb/halerror.py.exp +++ b/tests/pyb/halerror.py.exp @@ -1,2 +1,2 @@ OSError(5,) -OSError(116,) +OSError(110,) diff --git a/tests/pyb/rtc.py b/tests/pyb/rtc.py index 09af52629f..300c956342 100644 --- a/tests/pyb/rtc.py +++ b/tests/pyb/rtc.py @@ -2,6 +2,7 @@ import pyb, stm from pyb import RTC rtc = RTC() +rtc.init() print(rtc) # make sure that 1 second passes correctly |