aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-01-08tests: Fix math_fun_special test so it passes with single prec float.Damien George
2016-01-08tests: Allow float tests to run when MATH_SPECIAL_FUNCTIONS is disabled.Damien George
2016-01-07py/inlinethumb: Remove 30-bit restriction on movwt instruction.Damien George
movwt can now move a full 32-bit constant into a register.
2016-01-07py/parse: Improve constant folding to operate on small and big ints.Damien George
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.
2016-01-04py/objstr: In str.format, handle case of no format spec for string arg.Damien George
Handles, eg, "{:>20}".format("foo"), where there is no explicit spec for the type of the argument.
2016-01-03tests/object_dict.py: Add test for obj.__dict__ .Paul Sokolovsky
2016-01-03py: Implement __dict__ for instances.stijn
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.
2016-01-03py: Make dir report instance membersDave Hylands
2016-01-03tests/uctypes: Test item assignment for scalar arrays.Antonin ENFRUN
2015-12-26tests: Skip class_bind_self.py for native emitter.Damien George
2015-12-26py: Be more restrictive binding self when looking up instance attrs.Damien George
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.
2015-12-24tests: Skip try-finally test for native emitter.Damien George
2015-12-24py: Handle case of return within the finally block of try-finally.Damien George
Addresses issue #1636.
2015-12-23tests: Add tests for stream IO errors.Damien George
2015-12-20tests: Add tests for %-formatting of bytes.Paul Sokolovsky
This requires CPython3.5, to not require switching to it, just use .exp file.
2015-12-12py/modmath: Add domain error checking to sqrt, log, log2, log10.Michael Buesch
These functions will raise 'ValueError: math domain error' on invalid input.
2015-12-12py: Fix compiler to handle lambdas used as default arguments.Damien George
Addresses issue #1709.
2015-12-12unix: Rename "_os" module to "uos" for consistency with baremetal ports.Paul Sokolovsky
2015-12-10tests: Add test for "not" of a user defined class.Damien George
2015-12-10py/emitinlinethumb: Add support for MRS instruction.Henrik Sölver
Only IPSR and BASEPRI special registers supported at the moment, but easy to extend in the future.
2015-12-09extmod: Add test which demonstrates LITTLE_ENDIAN packing failureDave Hylands
2015-12-09py: Fix calling of parent classmethod from instance of subclass.Damien George
Addresses issue #1697.
2015-12-08tests: Disable for_range.py test for native emitter (it requires yield).Damien George
2015-12-08py: Don't try to optimise for+range when args are not simple expressions.Damien George
Addresses issue #1693.
2015-12-07tests/builtin_minmax: Make compatible with @native codegen.Paul Sokolovsky
2015-12-07tests/builtin_minmax: Add testcase for lazy iterable (generator).Paul Sokolovsky
2015-12-07tests: Add min/max "default" agrument testpohmelie
2015-12-06tests: Actuall add feature check for complex type being available.Paul Sokolovsky
2015-12-06tests/run-tests: Allow to skip complex tests if it's not compiled in.Paul Sokolovsky
2015-12-05tests/extra_coverage: Update for sys.modules addition.Paul Sokolovsky
2015-12-03py: Fix function calls that have positional and a star-arg-with-iterator.Damien George
Addresses issue #1678.
2015-11-30stmhal: Make uart.write() function correctly for timeout=0.Damien George
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.
2015-11-30stmhal: uart.any() function now returns number of bytes available.Ryan Shaw
2015-11-24tests/run-tests: Improve robustness of REPL tests.Paul Sokolovsky
Unconditionally wait for MicroPython banner. On overloaded systems, when using emulators, etc. initial executable startup may take more than 20ms.
2015-11-23py/compile: Do proper checking of * and ** in function definition.Damien George
This patch checks that there is only one *, and that ** is last in the arg list.
2015-11-23py: Check that second argument to hasattr is actually a string.Damien George
Fixes issue #1623.
2015-11-22tests/int_big_*: Add more tests for result normalization.Paul Sokolovsky
Tested by comparability to small int/casting to bool.
2015-11-22tests/int_big_xor: Test that xor result is normalized.Paul Sokolovsky
And thus can be successfully used in comparisons, etc.
2015-11-22tests/float/string_format: Add testcase for incorrect rounding for %f.Paul Sokolovsky
2015-11-17py: Implement default and star args for lambdas.Damien George
2015-11-16cc3200: Unmount all user file systems after a soft reset.danicampora
2015-11-13tests/jni: Add test for working with container of List interface.Paul Sokolovsky
2015-11-02stmhal/can: Fix a bug in filter handling.Henrik Sölver
Reported here: http://forum.micropython.org/viewtopic.php?f=2&t=845
2015-11-01extmod/modure: Make sure that errors in regexps are caught early.Paul Sokolovsky
2015-10-31tests/base/struct1.py: Add test for repetition counters.Paul Sokolovsky
2015-10-31tests: Make sure test output has \r\n line-ends when running on Windowsstijn
This is the case already when using just subprocess.check_output, but in the special cases (cmdline, meminfo, ...) the carriage return gets lost during output processing so restore it in the end. This fixes the micropython/meminfo.py test on Windows.
2015-10-31py: In inline asm, vldr and vstr offsets now in bytes not words.adminpete
As per ARM convention.
2015-10-26cc3200: Set pin direction first, then value. Fixes #1542.danicampora
2015-10-24tests/jni: Test for basic object operations.Paul Sokolovsky
2015-10-21cc3200: Fix UART tests after correcting uart.read() behaviour.danicampora