summaryrefslogtreecommitdiff
AgeCommit message (Collapse)Author
2017-03-10tests/extmod: Rename websocket test to websocket_basic.Damien George
This is so that the filename of the test doesn't clash with the module name itself (being "websocket"), and lead to potential problems executing the test.
2017-03-10stmhal/mphalport: Get ticks_cpu() working on F7 MCUs.Damien George
2017-03-10tests/basics/fun_error: Split out skippable test.Paul Sokolovsky
2017-03-10tests/feature_check/int_big: Rework "big int" detection.Paul Sokolovsky
MICROPY_LONGINT_IMPL_LONGLONG doesn't have overflow detection, so just parsing a large number won't give an error, we need to print it out to check that the whole number was parsed.
2017-03-10py/objint_longlong: Implement mp_obj_int_from_bytes_impl().Paul Sokolovsky
This makes int.from_bytes() work for MICROPY_LONGINT_IMPL_LONGLONG.
2017-03-09tests/micropython/opt_level: Clarify the expected output for opt_level == 3.Paul Sokolovsky
2017-03-09tests/micropython/heapalloc_traceback: Fix backtrace line # after refactor.Paul Sokolovsky
2017-03-09tests/micropython: Make uio-using tests skippable.Paul Sokolovsky
2017-03-09zephyr/modzephyr: Fix typo in identifier.Paul Sokolovsky
2017-03-09tests/dict_fromkeys: Split out skippable part.Paul Sokolovsky
2017-03-09tests/extmod: Add websocket tests.Alex March
These short unit tests test the base uPy methods as well as parts of the websocket protocol, as implemented by uPy. @dpgeorge converted the original socket based tests by @hosaka to ones that only require io.BytesIO.
2017-03-09tests/extmod: Add very basic feature test for ussl module.Damien George
This test just tests that the basic functions/methods can be called with the appropriate arguments. There is no real test of underlying functionality. Thanks to @hosaka for the initial implementation of this test.
2017-03-09tests/float: Make various tests skippable.Paul Sokolovsky
2017-03-09tests/basic: Make various tests skippable.Paul Sokolovsky
2017-03-08py/nlrx64: Fixes to support Mac OS.Damien George
Two independent fixes: - need to prefix symbols referenced from asm with underscore; - need to undo the C-function prelude.
2017-03-08zephyr/modzephyr: Add a module for Zephyr-specific things.Paul Sokolovsky
Mostly intended to ease experimentation, no particular plans for APIs so far (far less their stability), is_preempt_thread() provided is mostly an example.
2017-03-08README: Explicitly mention "await" support, and formatting for keywords.Paul Sokolovsky
2017-03-07py/nlrx86: Add workaround for Zephyr.Paul Sokolovsky
Actually, this removes -fno-omit-frame-pointer workaround for Zephyr.
2017-03-07extmod/modutimeq: Make scheduling fair (round-robin).Paul Sokolovsky
By adding back monotonically increasing field in addition to time field. As heapsort is not stable, without this, among entried added and readded at the same time instant, some might be always selected, and some might never be selected, leading to scheduling starvation.
2017-03-07tests/uctypes_array_assign_native_le: Split off intbig part.Paul Sokolovsky
2017-03-07docs/esp8266/tutorial: Update since esptool 1.3 added Python 3 support.James Ouyang
esptool 1.3 now supports both Python 2.7 and 3.4+. Updated github link to now-official espressif repo.
2017-03-07docs/library/lcd160cr: Add link to framebuf page.Rami Ali
2017-03-07docs/library: Add framebuf documentation.Rami Ali
2017-03-07tests/micropython/: Split off intbig tests.Paul Sokolovsky
2017-03-07tests/basics/unpack1.py: Test if *a, = b copies b when b is a list.Krzysztof Blazewicz
2017-03-07tests/basics/string_join.py: Add test case where argument is not iterable.Krzysztof Blazewicz
2017-03-07py: Use mp_obj_get_array where sequence may be a tuple or a list.Krzysztof Blazewicz
2017-03-07py/runtime.c: Remove optimization of '*a,=b', it caused a bug.Krzysztof Blazewicz
*a, = b should always make a copy of b, instead, before this patch if b was a list it would copy only a reference to it.
2017-03-07tests/string_format_modulo2: Split off intbig test.Paul Sokolovsky
2017-03-06tools/tinytest-codegen: Update for recent test renaming ("intbig" suffix).Paul Sokolovsky
2017-03-06tests/float2int*: Suffix with _intbig, don't run on any other int type.Paul Sokolovsky
I.e. they don't run successfully with MICROPY_LONGINT_IMPL_NONE and MICROPY_LONGINT_IMPL_LONGLONG (the problem is that they generate different output than CPython, TODO to fix that).
2017-03-06float/float2int*: Make actually be parsable for MICROPY_LONGINT_IMPL_NONE.Paul Sokolovsky
The use of large literal numbers is a big no-no when it comes to writing programs which work with different int representations. Also, some checks are pretty adhoc (e.g using struct module to check for 64-bitness). This change bases entire detection on sys.maxsize and integer operarions, and thus more correct, even if longer. Note that this change doesn't mean that any of these tests can pass with anything but MPZ - even despite checking for various int representations, the tests aren't written to be portable among them.
2017-03-06tests/float/complex1: Split out intbig test.Paul Sokolovsky
2017-03-06py/modsys: Use MP_SMALL_INT_MAX for sys.maxsize in case of LONGINT_IMPL_NONE.Paul Sokolovsky
INT_MAX used previosly is indeed max value for int, whereas on LP64 platforms, long is used for mp_int_t. Using MP_SMALL_INT_MAX is the correct way to do it anyway.
2017-03-06py/py.mk: Force nlr files to be compiled with -Os.Damien George
2017-03-06py/nlrx86: Convert from assembler to C file with inline asm.Damien George
2017-03-06py/nlrx64: Convert from assembler to C file with inline asm.Damien George
2017-03-06py/nlrxtensa: Convert from assembler to C file with inline asm.Damien George
nlr_jump is a little bit inefficient because it now saves a register to the stack.
2017-03-06py/nlr.h: Mark nlr_jump_fail as NORETURN.Damien George
2017-03-06py: Move locals/globals dicts to the thread-specific state.Damien George
Each threads needs to have its own private references to its current locals/globals dicts, otherwise functions running within different contexts (eg imported from different files) can behave very strangely.
2017-03-05unix/moduselect: Properly implement ipoll object iteration.Paul Sokolovsky
TODO: There's another issue to care about: poll set being modified during iteration.
2017-03-04tests/basic: Split tests into working with small ints and not working.Paul Sokolovsky
Tests which don't work with small ints are suffixed with _intbig.py. Some of these may still work with long long ints and need to be reclassified later.
2017-03-03tests/run-tests: Check for big int availability and skip related tests.Paul Sokolovsky
Big aka arbitrary-precision integers (implemented by MPZ module) are used in tests starting with "int_big_" or ending with "_intbig".
2017-03-03unix: Remove remaining, obsolete traces of GNU readline support.Damien George
2017-03-03tests/basics: Add further tests for OrderedDict.Damien George
2017-03-03py/map: Fix bugs with deletion of elements from OrderedDict.Damien George
There were 2 bugs, now fixed by this patch: - after deleting an element the len of the dict did not decrease by 1 - after deleting an element searching through the dict could lead to a seg fault due to there being an MP_OBJ_SENTINEL in the ordered array
2017-03-02msvc: Add machine/pin-related sources to buildstijn
This fixes unresolved references after [f1ea3bc]
2017-03-02qemu-arm: Enable machine module and associated tests.Damien George
2017-03-02stmhal/modnwcc3k: Add include for mp_hal_delay_ms.Damien George
2017-03-02tests/extmod: Add test for machine.Signal class.Damien George