diff options
author | Damien George <damien.p.george@gmail.com> | 2019-12-20 16:42:38 +1100 |
---|---|---|
committer | Damien George <damien.p.george@gmail.com> | 2019-12-20 16:42:38 +1100 |
commit | 39bc430e44173430776e7336c9e622d52affe59a (patch) | |
tree | afcc4071422f154a5abe48d614de14f5709b477f | |
parent | 073c5f3a40abd4bd7691f5468f0106ed4379ebfb (diff) | |
download | micropython-39bc430e44173430776e7336c9e622d52affe59a.tar.gz micropython-39bc430e44173430776e7336c9e622d52affe59a.zip |
tests/pyb: Adjust UART and Timer tests to work on PYBD_SF6.
-rw-r--r-- | tests/pyb/timer.py | 2 | ||||
-rw-r--r-- | tests/pyb/uart.py | 2 | ||||
-rw-r--r-- | tests/pyb/uart.py.exp | 1 |
3 files changed, 2 insertions, 3 deletions
diff --git a/tests/pyb/timer.py b/tests/pyb/timer.py index e83550abd8..0e24ff4ad4 100644 --- a/tests/pyb/timer.py +++ b/tests/pyb/timer.py @@ -16,4 +16,4 @@ print(tim.period()) tim = Timer(2, freq=100) print(tim.freq()) tim.freq(0.001) -print(tim.freq()) +print('{:.3f}'.format(tim.freq())) diff --git a/tests/pyb/uart.py b/tests/pyb/uart.py index 82a66dd2e0..9dcb1f75cd 100644 --- a/tests/pyb/uart.py +++ b/tests/pyb/uart.py @@ -1,7 +1,7 @@ from pyb import UART # test we can correctly create by id -for bus in (-1, 0, 1, 2, 5, 6, 7): +for bus in (-1, 0, 1, 2, 5, 6): try: UART(bus, 9600) print("UART", bus) diff --git a/tests/pyb/uart.py.exp b/tests/pyb/uart.py.exp index 1a4cbd9381..70e4ab8509 100644 --- a/tests/pyb/uart.py.exp +++ b/tests/pyb/uart.py.exp @@ -4,7 +4,6 @@ UART 1 UART 2 ValueError 5 UART 6 -ValueError 7 UART(1, baudrate=9600, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=3, rxbuf=64) UART(1, baudrate=2400, bits=8, parity=None, stop=1, flow=0, timeout=0, timeout_char=7, rxbuf=64) 0 |