| Age | Commit message (Collapse) | Author |
|
Improves coverage because it tests the case where the arg does not have a
__len__ slot.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
There is now just the exception instance on the stack when an exception is
raised, not the full (type, exc, traceback).
|
|
|
|
|
|
|
|
|
|
|
|
|
|
These additional special methods are enabled on most ports so we can test
them in this test.
|
|
|
|
See issue #2264.
|
|
|
|
|
|
|
|
Skip tests if not available.
|
|
There's single str_index_to_ptr() function, called for both bytes and
unicode objects, so should handle each properly.
|
|
This may produce a warning, depending on MicroPython configuration.
|
|
There's a need for .exp file because CPython renders OrderedDict's as:
OrderedDict([('b', 2)])
while MicroPython as:
OrderedDict({'b': 2})
|
|
|
|
So the documentation's example works. Besides, a tuple can be more
memory efficient.
|
|
|
|
|
|
|
|
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.
|
|
This patch consolidates the Python logic for division/modulo to one place
within the bignum code.
|
|
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.
|
|
They fail on builds with 32-bit word size.
|
|
|
|
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).
|
|
|
|
|
|
Addresses issue #1998.
|
|
|
|
|
|
|
|
Addresses issue #1965.
|
|
All tests in basics/ directory can now run and pass using 64-bit unix
port with only a 16k heap (./run-tests --heapsize 16k). Tests in this
directory should remain small so they can be used for ports with a
small heap.
|