Damien George
d279bcff8a
py/objstr: Fix eager optimisation of str/bytes addition.
...
The RHS can only be returned if it is the same type as the LHS.
2017-03-16 14:30:04 +11:00
Damien George
7b7ff60f91
travis: Change an stmhal rule to build PYBV11 instead of default PYBV10.
...
This allows to test the PYBV11 target as well as the network drivers
without adding another rule. It also removes the need to use -B,
side-stepping the issue of whether or not -B works with qstr auto
generation.
2017-03-15 22:20:30 +11:00
Damien George
fcab435607
docs/library/framebuf: Fix typo in bit-width for MVLSB description.
2017-03-15 21:54:56 +11:00
Damien George
23a693ec2d
py/mkrules.mk: Remove special check for "-B" in qstr auto generation.
...
When make is passed "-B" it seems that everything is considered out-of-date
and so $? expands to all prerequisites. Thus there is no need for a
special check to see if $? is emtpy.
2017-03-15 21:50:48 +11:00
Damien George
ecb4357fe1
tests/basics: Move string-modulo-format int tests to dedicated file.
2017-03-15 17:34:47 +11:00
Damien George
b154468b08
tests/basics: Add test for string module formatting with int argument.
2017-03-15 17:31:17 +11:00
Damien George
3a0b2be6e2
tests/basics/string_format2: Adjust comment now that tests succeed.
2017-03-15 17:25:46 +11:00
Damien George
d65371538d
py/mpprint: Fix int formatting so "+" is printed for 0-valued integer.
2017-03-15 17:25:12 +11:00
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