summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
Commit message (Collapse)AuthorAge
* py: Be more restrictive binding self when looking up instance attrs.Damien George2015-12-26
| | | | | | | | | | | 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.
* py: Handle case of return within the finally block of try-finally.Damien George2015-12-24
| | | | Addresses issue #1636.
* tests: Add tests for %-formatting of bytes.Paul Sokolovsky2015-12-20
| | | | | This requires CPython3.5, to not require switching to it, just use .exp file.
* py: Fix compiler to handle lambdas used as default arguments.Damien George2015-12-12
| | | | Addresses issue #1709.
* tests: Add test for "not" of a user defined class.Damien George2015-12-10
|
* py: Fix calling of parent classmethod from instance of subclass.Damien George2015-12-09
| | | | Addresses issue #1697.
* py: Don't try to optimise for+range when args are not simple expressions.Damien George2015-12-08
| | | | Addresses issue #1693.
* tests/builtin_minmax: Make compatible with @native codegen.Paul Sokolovsky2015-12-07
|
* tests/builtin_minmax: Add testcase for lazy iterable (generator).Paul Sokolovsky2015-12-07
|
* tests: Add min/max "default" agrument testpohmelie2015-12-07
|
* py: Fix function calls that have positional and a star-arg-with-iterator.Damien George2015-12-03
| | | | Addresses issue #1678.
* py/compile: Do proper checking of * and ** in function definition.Damien George2015-11-23
| | | | | This patch checks that there is only one *, and that ** is last in the arg list.
* py: Check that second argument to hasattr is actually a string.Damien George2015-11-23
| | | | Fixes issue #1623.
* tests/int_big_*: Add more tests for result normalization.Paul Sokolovsky2015-11-22
| | | | Tested by comparability to small int/casting to bool.
* tests/int_big_xor: Test that xor result is normalized.Paul Sokolovsky2015-11-22
| | | | And thus can be successfully used in comparisons, etc.
* py: Implement default and star args for lambdas.Damien George2015-11-17
|
* tests/base/struct1.py: Add test for repetition counters.Paul Sokolovsky2015-10-31
|
* py: Fix with+for+return bug by popping for-iter when unwinding exc stack.Damien George2015-10-15
| | | | Addresses issue #1182.
* py: Remove dependency on printf/fwrite in mp_plat_print.Damien George2015-10-15
| | | | See issue #1500.
* tests: Add test for evaluation order of dictionary key/value pairs.Damien George2015-10-08
| | | | | In Python 3.4 the value is evaluated before the key. In Python 3.5 it's key then value.
* py/compile: Fix edge case when constant-folding negation of integer.Damien George2015-10-08
| | | | Also adds tests specifically for testing constant folding.
* tests/basics/builtin_range: PEP8 fixes.Paul Sokolovsky2015-10-05
|
* tests: Allow tests to pass against CPython 3.5.Damien George2015-10-02
| | | | | All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py.
* py: Catch all cases of integer (big and small) division by zero.Damien George2015-10-01
|
* py/mpz: Fix bignum anding of large negative with smaller positive int.Damien George2015-10-01
|
* tests: Add further tests for mpz code.Damien George2015-10-01
|
* tests: Test slicing a range that does not start at zero.Tom Soulanille2015-09-28
|
* py: Fix call args when a stararg is followed by keyword args.Delio Brignoli2015-09-23
|
* py/objslice: Make slice attributes (start/stop/step) readable.Tom Soulanille2015-09-15
| | | | Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
* py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.Damien George2015-09-15
| | | | | | | | When creating constant mpz's, the length of the mpz must be exactly how many digits are used (not allocated) otherwise these numbers are not compatible with dynamically allocated numbers. Addresses issue #1448.
* tests: Move int+unicode test to unicode-specific test directory.Damien George2015-09-07
|
* py/compile: Refine SyntaxError for repeated use of global/nonlocal.Damien George2015-09-07
|
* tests: Add tests to improve coverage of objstr.c.Damien George2015-09-03
|
* py/binary: Add support for array('q') and array('Q').Damien George2015-09-01
|
* tests: Add test for exception-chaining raise syntax.Paul Sokolovsky2015-09-01
|
* py/objstr: Simplify error handling for bad conversion specifier.Damien George2015-08-30
|
* tests: Add test where __getitem__ raises IndexError to stop iteration.Damien George2015-08-30
|
* py/objstr: Fix error reporting for unexpected end of modulo format str.Damien George2015-08-29
|
* py/objstr: Fix error type for badly formatted format specifier.Damien George2015-08-29
| | | | Was KeyError, should be ValueError.
* tests: Add a few tests for bool, bytearray, float to improve coverage.Damien George2015-08-29
|
* tests: Split byteorder-dependent tests to *_endian.py's.Paul Sokolovsky2015-08-30
|
* tests: Add test on set/frozenset equality.Paul Sokolovsky2015-08-28
|
* objset: frozensets are hashable.Paul Sokolovsky2015-08-28
|
* tests: Add more tests to improve coverage, mostly testing exceptions.Damien George2015-08-21
|
* py/objlist: Make list += accept all arguments and add test.Damien George2015-08-02
|
* tests: Skip parser test if "compile" builtin is not available.Damien George2015-07-24
|
* py/parse: Fix handling of empty input so it raises an exception.Damien George2015-07-24
|
* py/lexer: Raise SyntaxError when str hex escape sequence is malformed.Damien George2015-07-23
| | | | Addresses issue #1390.
* py: Implement memoryview slice assignment.Delio Brignoli2015-07-20
| | | | | Adds ability to do "memcpy" with memoryview objects, such as: m1[0:3] = m2[2:5].
* modbuiltins: Implement round() to precision.Sebastian Plamauer2015-07-19
|