aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-03-15py/formatfloat: Fix buffer overflow when formatting tiny numbers.Damien George
2016-03-14py/objarray: Fix array slice assignment when array is reallocated.Damien George
Addresses issue #1898.
2016-03-08tests/run-tests: Simplify handling of newline in output from tests.Damien George
Now, all output has newlines converted to \n, regardless of port or platform.
2016-03-07tests/run-tests: Fix logic when selecting test-dirs for a given target.Damien George
2016-03-07tests/recursive_iternext.py: Make low-heap friendly.Paul Sokolovsky
2016-03-07tests/print_exception: Use exception which prints the same regardless of config.Paul Sokolovsky
NameError may either include offending name or not. Unfortunately, this change makes test float-dependent. And using integer division leads to different error message than CPython.
2016-03-06test/string_format_fp30: Variant of string_format for 30-bit stuffed float.Paul Sokolovsky
2016-03-06test/float2int_fp30: Variant of float2int for 30-bit stuffed float.Paul Sokolovsky
2016-03-06tests: Remove commented out tests so test script is not too big.Damien George
2016-03-06tests: Reduce large object allocations so tests can run with small heap.Damien George
2016-03-03tests/run-tests: Skips for esp8266.Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Add testcase for .rename().Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Allow to run in native mode (don't use "with").Paul Sokolovsky
2016-02-29tests/vfs_fat_ramdisk: Add testcase for .mkdir().Paul Sokolovsky
2016-02-28tests/vfs_fat_ramdisk: Add testcase for .remove().Paul Sokolovsky
2016-02-28tests/vfs_fat_ramdisk: Add .listdir() testcase.Paul Sokolovsky
2016-02-22cc3200: Rename 'server' class to 'Server' for consistency.danicampora
2016-02-22tests/wipy: Correct machine test expected result.danicampora
2016-02-21tests: Skip uctypes and urandom tests not supported byt the WiPy.danicampora
2016-02-21test/wipy: Add Timer class tests.danicampora
2016-02-17py/repl: Check for an identifier char after the keyword.Alex March
- As described in the #1850. - Add cmdline tests.
2016-02-15tests/vfs_fat_ramdisk: Skip test if can't allocate ramdisk.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Allow to override sector size.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Switch to ioctl-based blockdev API.Paul Sokolovsky
2016-02-14tests/vfs_fat_ramdisk: Add test for VfsFat.Paul Sokolovsky
2016-02-14tests/bytearray1: Add testcases for "in" operator.Paul Sokolovsky
2016-02-13float/string_format: Split large test in 2.Paul Sokolovsky
2016-02-13tests/run-tests: Add esp8266 target.Paul Sokolovsky
2016-02-13test/float2int: Make test output clearer.Paul Sokolovsky
2016-02-10tests/pyb: Add simple test for stm module on pyboard.Damien George
2016-02-09py/viper: Allow casting of Python integers to viper pointers.Damien George
This allows you to pass a number (being an address) to a viper function that expects a pointer, and also allows casting of integers to pointers within viper functions. This was actually the original behaviour, but it regressed due to native type identifiers being promoted to 4 bits in width.
2016-02-06tests/open_plus: Add tests for "r+", "w+" open modes.Paul Sokolovsky
2016-02-03py/mpz: Complete implementation of mpz_{and,or,xor} for negative args.Doug Currie
For these 3 bitwise operations there are now fast functions for positive-only arguments, and general functions for arbitrary sign arguments (the fast functions are the existing implementation). By default the fast functions are not used (to save space) and instead the general functions are used for all operations. Enable MICROPY_OPT_MPZ_BITWISE to use the fast functions for positive arguments.
2016-02-02py/objstr: For str.format, add nested/computed fields support.pohmelie
Eg: '{:{}}'.format(123, '>20') @pohmelie was the original author of this patch, but @dpgeorge made significant changes to reduce code size and improve efficiency.
2016-02-01py/vm: Fix popping of exception block in UNWIND_JUMP opcode.Damien George
Fixes issue #1812.
2016-02-01py/mpprint: Fix sign extension when printf'ing %u, %x and %X.Damien George
2016-01-30tests: For pyboard, add test for I2C error handling and recovery.Damien George
2016-01-29tests: Update pyboard LED test.Damien George
2016-01-27py/inlineasm: Add ability to specify return type of asm_thumb funcs.Damien George
Supported return types are: object, bool, int, uint. For example: @micropython.asm_thumb def foo(r0, r1) -> uint: add(r0, r0, r1)
2016-01-26tests: For urandom test, use sys.exit() instead of sys.exit(1).Damien George
2016-01-26tests: Add some tests for urandom module.Damien George
2016-01-19py: Add ustruct.pack_into and unpack_fromDave Hylands
2016-01-14builtin property: accept keyword argumentschrysn
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.
2016-01-14tests: Remove builtin_dict teststijn
This is essentially a duplicate of obj_dict.py
2016-01-10extmod: Fix uctypes size calculation for bitfieldsDave Hylands
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.