aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2016-07-25tests/unicode_subscr.py: Detailed test for subscripting unicode strings.Paul Sokolovsky
2016-07-25py/objstrunicode: str_index_to_ptr: Should handle bytes too.Paul Sokolovsky
There's single str_index_to_ptr() function, called for both bytes and unicode objects, so should handle each properly.
2016-07-24tests/extmod/btree1: Close database at the end of test.Paul Sokolovsky
2016-07-22tests/bytes_compare: Rework test for bytes <-> str comparison.Paul Sokolovsky
This may produce a warning, depending on MicroPython configuration.
2016-07-17tests/extmod/machine_pinbase: Skip if machine.PinBase is not available.Paul Sokolovsky
2016-07-14tests: Add test for extended arguments to stream .write() method.Paul Sokolovsky
2016-07-09tests/run-tests: If running thread tests on unix, don't run mutate ones.Damien George
They will fail because the GIL is disabled on the unix build.
2016-07-01tests/meminfo: Update for addition of "max free sz" output.Paul Sokolovsky
2016-06-28tests/thread: Allow some tests to run on ports with not much heap.Damien George
2016-06-28tests/thread: Allow thread_sleep1 to run without floating point.Damien George
2016-06-28tests/thread: Make sure that thread tests don't rely on floating point.Damien George
2016-06-28tests/thread: Make stack-size test run correctly and reliable on uPy.Damien George
2016-06-28tests/thread: Add test for concurrent mutating of user instance.Damien George
2016-06-28tests/thread: Add test for concurrent interning of strings.Damien George
Qstr code accesses global state and needs to be made thread safe.
2016-06-28tests/thread: Add tests that mutate shared objects.Damien George
Tests concurrent mutating access to: list, dict, set, bytearray.
2016-06-28tests/thread: Rename thread_stress_XXX.py to stress_XXX.py.Damien George
2016-06-28tests/thread: Add tests for running GC within a thread, and heap stress.Damien George
2016-06-28tests/thread: Remove need to sleep to wait for completion in some tests.Damien George
Use a lock and a counter instead, and busy wait for all threads to complete. This makes test run faster and they no longer rely on the time module.
2016-06-28tests: Add 3 more tests for _thread module.Damien George
2016-06-28tests: Add tests for _thread module.Damien George
Includes functionality and stress tests.
2016-06-24tests/btree1: Add testcase for iterating btree object directly.Paul Sokolovsky
2016-06-21tests/extmod: Add "btree" module test.Paul Sokolovsky
2016-06-19tests: Add a testcase for machine.PinBase class.Paul Sokolovsky
2016-06-12tests: Add testcase for OrderedDict equality.Mark Anthony Palomer
There's a need for .exp file because CPython renders OrderedDict's as: OrderedDict([('b', 2)]) while MicroPython as: OrderedDict({'b': 2})
2016-06-08tests/bench: Add testcase to compare bytes(N) vs b"\0" * N.Paul Sokolovsky
Based on python-dev discussion regarding PEP467.
2016-06-06py/parse: Treat constants that start with underscore as private.Damien George
Assignments of the form "_id = const(value)" are treated as private (following a similar CPython convention) and code is no longer emitted for the assignment to a global variable. See issue #2111.
2016-06-04tests/recursive_iternext: Clang/Linux is even more stack-frugal than MacOS.Paul Sokolovsky
2016-06-03tests/pyb/rtc: Make RTC test on pyboard more reliable by calling init().Damien George
2016-06-03tests/misc/recursive_iternext: Provide more fine-grained selection of N.Damien George
To work on a variety of ports the selection of N is very specific.
2016-06-03tests/misc/recursive_iternext.py: Increase depth N from 1000 to 2000.Damien George
This makes the test reliably overflow the recursion limit (which is the correct behaviour) on Mac OS X.
2016-05-29tests/extmod/vfs_fat_ramdisk: Add testcases for chdir(), getcwd().Paul Sokolovsky
2016-05-28py/modstruct: Allow to have "0s" in struct format.Damien George
2016-05-23py/objnamedtuple: Allow passing field names as a tuple.Antonin ENFRUN
So the documentation's example works. Besides, a tuple can be more memory efficient.
2016-05-22tests: Add testcase for str.center().Paul Sokolovsky
2016-05-14tests/struct1: Add testcase for an unknown type char.Paul Sokolovsky
2016-05-13tests/basics/string_splitlines: Reinstate feature test for splitlines.Damien George
2016-05-13py/objstr: Make dedicated splitlines function, supporting diff newlines.Damien George
It now supports \n, \r and \r\n as newline separators. Adds 56 bytes to stmhal and 80 bytes to unix x86-64. Fixes issue #1689.
2016-05-10stmhal: Convert to use internal errno symbols; enable uerrno module.Damien George
2016-05-08py/mpz: Do Python style division/modulo within bignum divmod routine.Damien George
This patch consolidates the Python logic for division/modulo to one place within the bignum code.
2016-05-08py/mpz: Fix bug with overflowing C-shift in division routine.Damien George
When DIG_SIZE=32, a uint32_t is used to store limbs, and no normalisation is needed because the MSB is already set, then there will be left and right shifts (in C) by 32 of a 32-bit variable, leading to undefined behaviour. This patch fixes this bug.
2016-05-08stmhal/can: Allow to get existing CAN obj if constructed without args.Henrik Sölver
Initialisation of CAN objects should now behave as other peripheral objects. Fixes issue #2001.
2016-05-07tests: Disable memoryview tests that overflow int conversion.Damien George
They fail on builds with 32-bit word size.
2016-05-07py/runtime: Properly handle passing user mappings to ** keyword args.Damien George
2016-05-07py/objstr: Binary type of str/bytes for buffer protocol is 'B'.Damien George
The type is an unsigned 8-bit value, since bytes objects are exactly that. And it's also sensible for unicode strings to return unsigned values when accessed in a byte-wise manner (CPython does not allow this).
2016-05-07tests/run-tests: Factor out list supported external boards.Paul Sokolovsky
To get consistent error messages, etc.
2016-05-02tests: Make "io" modules fixes for CPython compatibility.Paul Sokolovsky
Previously, "import _io" worked on both CPython and MicroPython (essentially by a chance on CPython, as there's not guarantee that its contents will stay the same across versions), but as the module was renamed to uio, need to use more robust import sequence for compatibility.
2016-05-02tests: Update for _io/_collections module having been renamed.Paul Sokolovsky
2016-05-01tests/run-bench-tests: Process tests in alphabetical order.Paul Sokolovsky
2016-04-28tests/run-tests: Add gen_yield_from_stopped to skipped for --emit=native.Paul Sokolovsky
Just as the rest of generator tests, which aren't yet supoorted for native.
2016-04-28tests: Add testcase for yielding from a stopped generator.Paul Sokolovsky