-
-
Notifications
You must be signed in to change notification settings - Fork 8.4k
Closed
Labels
Description
Tested on a TL-WR703N running OpenWrt and Micro Python (89ab3be) using exp files generated on a x86-64 machine running Python 3.4 on Ubuntu.
Results:
276 tests performed (11297 individual testcases)
271 tests passed
5 tests failed - int_bytes struct1 native viper import_file
int_bytes.py output:
root@WR703N:/tmp/tests/basics# micropython int_bytes.py
b'\x00'
b'\x00\x01\xb2\x07'
b'\x00\x00\x00d\x00\x00\x00\x00\x00\x00'
256
1
256
struct1.py:
root@WR703N:/tmp/tests/basics# micropython struct1.py
5
(-128, 65536)
5
(-128, 256)
b'\x00\x00\x00\x01'
b'\x01\x00\x00\x00'
b'\x00\x00'
b'\x00\x00'
b'\x00'
b'\x00'
b'\xff\x00\x00\x01\x00'
b'\xff\x00\x01\x00\x00'
104
104
(b'foo\x00\x00\x00', 13330)
b'foo\x00\x00\x00\x00\x00'
False
import_file.py fails because the exp files were from a difference machine, so presumably it's a correct result. Same is probably true for some of the above failures.
native.py and viper.py give SyntaxError: invalid micropython decorator
.