summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* py/vm: Fix popping of exception block in UNWIND_JUMP opcode.Damien George2016-02-01
| | | | Fixes issue #1812.
* py/mpprint: Fix sign extension when printf'ing %u, %x and %X.Damien George2016-02-01
|
* tests: For pyboard, add test for I2C error handling and recovery.Damien George2016-01-30
|
* tests: Update pyboard LED test.Damien George2016-01-29
|
* py/inlineasm: Add ability to specify return type of asm_thumb funcs.Damien George2016-01-27
| | | | | | | | | | Supported return types are: object, bool, int, uint. For example: @micropython.asm_thumb def foo(r0, r1) -> uint: add(r0, r0, r1)
* tests: For urandom test, use sys.exit() instead of sys.exit(1).Damien George2016-01-26
|
* tests: Add some tests for urandom module.Damien George2016-01-26
|
* py: Add ustruct.pack_into and unpack_fromDave Hylands2016-01-19
|
* builtin property: accept keyword argumentschrysn2016-01-14
| | | | | | | | | | this allows python code to use property(lambda:..., doc=...) idiom. named versions for the fget, fset and fdel arguments are left out in the interest of saving space; they are rarely used and easy to enable when actually needed. a test case is included.
* tests: Remove builtin_dict teststijn2016-01-14
| | | | This is essentially a duplicate of obj_dict.py
* extmod: Fix uctypes size calculation for bitfieldsDave Hylands2016-01-10
|
* tests: Fix math_fun_special test so it passes with single prec float.Damien George2016-01-08
|
* tests: Allow float tests to run when MATH_SPECIAL_FUNCTIONS is disabled.Damien George2016-01-08
|
* py/inlinethumb: Remove 30-bit restriction on movwt instruction.Damien George2016-01-07
| | | | movwt can now move a full 32-bit constant into a register.
* py/parse: Improve constant folding to operate on small and big ints.Damien George2016-01-07
| | | | | | | | | | | | | | | Constant folding in the parser can now operate on big ints, whatever their representation. This is now possible because the parser can create parse nodes holding arbitrary objects. For the case of small ints the folding is still efficient in RAM because the folded small int is stored inplace in the parse node. Adds 48 bytes to code size on Thumb2 architecture. Helps reduce heap usage because more constants can be computed at compile time, leading to a smaller parse tree, and most importantly means that the constants don't have to be computed at runtime (perhaps more than once). Parser will now be a little slower when folding due to calls to runtime to do the arithmetic.
* py/objstr: In str.format, handle case of no format spec for string arg.Damien George2016-01-04
| | | | | Handles, eg, "{:>20}".format("foo"), where there is no explicit spec for the type of the argument.
* tests/object_dict.py: Add test for obj.__dict__ .Paul Sokolovsky2016-01-03
|
* py: Implement __dict__ for instances.stijn2016-01-03
| | | | | | Note that even though wrapped in MICROPY_CPYTHON_COMPAT, it is not fully compatible because the modifications to the dictionary do not propagate to the actual instance members.
* py: Make dir report instance membersDave Hylands2016-01-03
|
* tests/uctypes: Test item assignment for scalar arrays.Antonin ENFRUN2016-01-03
|
* tests: Skip class_bind_self.py for native emitter.Damien George2015-12-26
|
* py: Be more restrictive binding self when looking up instance attrs.Damien George2015-12-26
| | | | | | | | | | | When looking up and extracting an attribute of an instance, some attributes must bind self as the first argument to make a working method call. Previously to this patch, any attribute that was callable had self bound as the first argument. But Python specs require the check to be more restrictive, and only functions, closures and generators should have self bound as the first argument Addresses issue #1675.
* tests: Skip try-finally test for native emitter.Damien George2015-12-24
|
* py: Handle case of return within the finally block of try-finally.Damien George2015-12-24
| | | | Addresses issue #1636.
* tests: Add tests for stream IO errors.Damien George2015-12-23
|
* tests: Add tests for %-formatting of bytes.Paul Sokolovsky2015-12-20
| | | | | This requires CPython3.5, to not require switching to it, just use .exp file.
* py/modmath: Add domain error checking to sqrt, log, log2, log10.Michael Buesch2015-12-12
| | | | | These functions will raise 'ValueError: math domain error' on invalid input.
* py: Fix compiler to handle lambdas used as default arguments.Damien George2015-12-12
| | | | Addresses issue #1709.
* unix: Rename "_os" module to "uos" for consistency with baremetal ports.Paul Sokolovsky2015-12-12
|
* tests: Add test for "not" of a user defined class.Damien George2015-12-10
|
* py/emitinlinethumb: Add support for MRS instruction.Henrik Sölver2015-12-10
| | | | | Only IPSR and BASEPRI special registers supported at the moment, but easy to extend in the future.
* extmod: Add test which demonstrates LITTLE_ENDIAN packing failureDave Hylands2015-12-09
|
* py: Fix calling of parent classmethod from instance of subclass.Damien George2015-12-09
| | | | Addresses issue #1697.
* tests: Disable for_range.py test for native emitter (it requires yield).Damien George2015-12-08
|
* py: Don't try to optimise for+range when args are not simple expressions.Damien George2015-12-08
| | | | Addresses issue #1693.
* tests/builtin_minmax: Make compatible with @native codegen.Paul Sokolovsky2015-12-07
|
* tests/builtin_minmax: Add testcase for lazy iterable (generator).Paul Sokolovsky2015-12-07
|
* tests: Add min/max "default" agrument testpohmelie2015-12-07
|
* tests: Actuall add feature check for complex type being available.Paul Sokolovsky2015-12-06
|
* tests/run-tests: Allow to skip complex tests if it's not compiled in.Paul Sokolovsky2015-12-06
|
* tests/extra_coverage: Update for sys.modules addition.Paul Sokolovsky2015-12-05
|
* py: Fix function calls that have positional and a star-arg-with-iterator.Damien George2015-12-03
| | | | Addresses issue #1678.
* stmhal: Make uart.write() function correctly for timeout=0.Damien George2015-11-30
| | | | | | | | | | | In non-blocking mode (timeout=0), uart.write() can now transmit all of its data without raising an exception. uart.read() also works correctly in this mode. As part of this patch, timout_char now has a minimum value which is long enough to transfer 1 character. Addresses issue #1533.
* stmhal: uart.any() function now returns number of bytes available.Ryan Shaw2015-11-30
|
* tests/run-tests: Improve robustness of REPL tests.Paul Sokolovsky2015-11-24
| | | | | Unconditionally wait for MicroPython banner. On overloaded systems, when using emulators, etc. initial executable startup may take more than 20ms.
* py/compile: Do proper checking of * and ** in function definition.Damien George2015-11-23
| | | | | This patch checks that there is only one *, and that ** is last in the arg list.
* py: Check that second argument to hasattr is actually a string.Damien George2015-11-23
| | | | Fixes issue #1623.
* tests/int_big_*: Add more tests for result normalization.Paul Sokolovsky2015-11-22
| | | | Tested by comparability to small int/casting to bool.
* tests/int_big_xor: Test that xor result is normalized.Paul Sokolovsky2015-11-22
| | | | And thus can be successfully used in comparisons, etc.
* tests/float/string_format: Add testcase for incorrect rounding for %f.Paul Sokolovsky2015-11-22
|