aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
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.
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.