Damien George
8cd4911e63
py/emitnative: Remove obsolete commented out code.
2017-03-15 10:03:22 +11:00
Damien George
e29f704b67
tests/micropython/viper_error: Add more tests to improve coverage.
2017-03-14 23:05:41 +11:00
Damien George
a5a84e1f85
py/emitnative: Use assertions and mp_not_implemented correctly.
...
Assertions are used to check expressions that should always be true,
and mp_not_implemented is used for code that can be reached.
2017-03-14 23:05:40 +11:00
Rami Ali
8a57cacd78
tests/extmod: Improve tinfgzip.c test coverage.
2017-03-14 22:13:36 +11:00
Damien George
a49a96bb5d
tests/extmod/vfs_basic: Unmount all existing devices before doing test.
...
This is so the test can run successfully on targets that already have
something mounted.
2017-03-14 22:08:37 +11:00
Damien George
923ec1169f
tests/run-tests: Re-instate skipping of doubleprec test on pyboard.
2017-03-14 22:07:52 +11:00
Damien George
3f7aa330fd
lib/utils/pyexec: Fix bug with pyexec_file not setting flag for source.
2017-03-14 21:53:46 +11:00
Damien George
05fec17d9b
tests/basics/struct_micropython: Add test for 'S' typecode in ustruct.
...
The 'S' typecode is a uPy extension so it should be grouped with the other
extension (namely 'O' typecode). Testing 'S' needs uctypes which is an
extmod module and not always available, so this test is made optional and
will only be run on ports that have (u)struct and uctypes. Otherwise it
will be silently skipped.
2017-03-14 18:27:43 +11:00
Rami Ali
77cbd173df
tests: Improve binary.c test coverage.
2017-03-14 18:27:29 +11:00
Rami Ali
4e86ca398f
tests/extmod: Improve re1.5/recursiveloop.c test coverage.
2017-03-14 17:17:45 +11:00
Damien George
773b0bac41
tests/extmod/vfs_basic: Add more tests for basic VFS functionality.
2017-03-14 16:07:30 +11:00
Damien George
d1ae6ae080
py/objint: Allow to print long-long ints without using the heap.
...
Some stack is allocated to format ints, and when the int implementation uses
long-long there should be additional stack allocated compared with the other
cases. This patch uses the existing "fmt_int_t" type to determine the
amount of stack to allocate.
2017-03-14 14:54:20 +11:00
Damien George
4f29b315a6
esp8266: Only execute main.py if in friendly REPL mode.
2017-03-14 13:04:03 +11:00
Damien George
e1782042f5
teensy/lexerfrozen: Make mp_lexer_new_from_file raise an exception.
2017-03-14 11:52:05 +11:00
Damien George
97142000f7
mpy-cross/main: Move lexer constructor to within NLR handler block.
2017-03-14 11:52:05 +11:00
Damien George
68e1c4f068
pic16bit/main: Make mp_lexer_new_from_file raise an exception.
2017-03-14 11:52:05 +11:00
Damien George
41b1df6046
lib/memzip: Make lexer constructor raise exception when file not found.
2017-03-14 11:52:05 +11:00
Damien George
21420b13c0
examples/embedding: Place lexer constructor within NLR handler block.
...
The lexer constructor may now raise an exception and it needs to be caught.
2017-03-14 11:52:05 +11:00
Damien George
52f8f5666a
esp8266: Update lexer constructors so they can raise exceptions.
2017-03-14 11:52:05 +11:00
Damien George
180045bce9
zephyr/main: Move lexer constructor to within NLR handler block.
...
And raise an exception when mp_lexer_new_from_file is called.
2017-03-14 11:52:05 +11:00
Damien George
25b6b62562
qemu-arm: Move lexer constructors to within NLR handler block.
...
And raise an exception when mp_lexer_new_from_file is called.
2017-03-14 11:52:05 +11:00
Damien George
bcd5adc65e
minimal/main: Move lexer constructor to within NLR handler block.
...
And raise an exception when mp_lexer_new_from_file is called.
2017-03-14 11:52:05 +11:00
Damien George
c72a5f8c79
bare-arm/main: Move lexer constructor to within NLR handler block.
...
And raise an exception when mp_lexer_new_from_file is called.
2017-03-14 11:52:05 +11:00
Damien George
33a77ea25f
unix/main: Refactor to put lexer constructors all in one place.
...
The lexer can now raise an exception on construction so it must go within
an nlr handler block.
2017-03-14 11:52:05 +11:00
Damien George
56b238393b
lib/utils/pyexec: Refactor to put lexer constructors all in one place.
...
The lexer can now raise an exception on construction so it must go within
an nlr handler block.
2017-03-14 11:52:05 +11:00