aboutsummaryrefslogtreecommitdiff
path: root/tests/basics
AgeCommit message (Collapse)Author
2015-12-12py: Fix compiler to handle lambdas used as default arguments.Damien George
Addresses issue #1709.
2015-12-10tests: Add test for "not" of a user defined class.Damien George
2015-12-09py: Fix calling of parent classmethod from instance of subclass.Damien George
Addresses issue #1697.
2015-12-08py: Don't try to optimise for+range when args are not simple expressions.Damien George
Addresses issue #1693.
2015-12-07tests/builtin_minmax: Make compatible with @native codegen.Paul Sokolovsky
2015-12-07tests/builtin_minmax: Add testcase for lazy iterable (generator).Paul Sokolovsky
2015-12-07tests: Add min/max "default" agrument testpohmelie
2015-12-03py: Fix function calls that have positional and a star-arg-with-iterator.Damien George
Addresses issue #1678.
2015-11-23py/compile: Do proper checking of * and ** in function definition.Damien George
This patch checks that there is only one *, and that ** is last in the arg list.
2015-11-23py: Check that second argument to hasattr is actually a string.Damien George
Fixes issue #1623.
2015-11-22tests/int_big_*: Add more tests for result normalization.Paul Sokolovsky
Tested by comparability to small int/casting to bool.
2015-11-22tests/int_big_xor: Test that xor result is normalized.Paul Sokolovsky
And thus can be successfully used in comparisons, etc.
2015-11-17py: Implement default and star args for lambdas.Damien George
2015-10-31tests/base/struct1.py: Add test for repetition counters.Paul Sokolovsky
2015-10-15py: Fix with+for+return bug by popping for-iter when unwinding exc stack.Damien George
Addresses issue #1182.
2015-10-15py: Remove dependency on printf/fwrite in mp_plat_print.Damien George
See issue #1500.
2015-10-08tests: Add test for evaluation order of dictionary key/value pairs.Damien George
In Python 3.4 the value is evaluated before the key. In Python 3.5 it's key then value.
2015-10-08py/compile: Fix edge case when constant-folding negation of integer.Damien George
Also adds tests specifically for testing constant folding.
2015-10-05tests/basics/builtin_range: PEP8 fixes.Paul Sokolovsky
2015-10-02tests: Allow tests to pass against CPython 3.5.Damien George
All breaking changes going from 3.4 to 3.5 are contained in basics/python34.py.
2015-10-01py: Catch all cases of integer (big and small) division by zero.Damien George
2015-10-01py/mpz: Fix bignum anding of large negative with smaller positive int.Damien George
2015-10-01tests: Add further tests for mpz code.Damien George
2015-09-28tests: Test slicing a range that does not start at zero.Tom Soulanille
2015-09-23py: Fix call args when a stararg is followed by keyword args.Delio Brignoli
2015-09-15py/objslice: Make slice attributes (start/stop/step) readable.Tom Soulanille
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
2015-09-15py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.Damien George
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.
2015-09-07tests: Move int+unicode test to unicode-specific test directory.Damien George
2015-09-07py/compile: Refine SyntaxError for repeated use of global/nonlocal.Damien George
2015-09-03tests: Add tests to improve coverage of objstr.c.Damien George
2015-09-01py/binary: Add support for array('q') and array('Q').Damien George
2015-09-01tests: Add test for exception-chaining raise syntax.Paul Sokolovsky
2015-08-30py/objstr: Simplify error handling for bad conversion specifier.Damien George
2015-08-30tests: Add test where __getitem__ raises IndexError to stop iteration.Damien George
2015-08-29py/objstr: Fix error reporting for unexpected end of modulo format str.Damien George
2015-08-29py/objstr: Fix error type for badly formatted format specifier.Damien George
Was KeyError, should be ValueError.
2015-08-29tests: Add a few tests for bool, bytearray, float to improve coverage.Damien George
2015-08-30tests: Split byteorder-dependent tests to *_endian.py's.Paul Sokolovsky
2015-08-28tests: Add test on set/frozenset equality.Paul Sokolovsky
2015-08-28objset: frozensets are hashable.Paul Sokolovsky
2015-08-21tests: Add more tests to improve coverage, mostly testing exceptions.Damien George
2015-08-02py/objlist: Make list += accept all arguments and add test.Damien George
2015-07-24tests: Skip parser test if "compile" builtin is not available.Damien George
2015-07-24py/parse: Fix handling of empty input so it raises an exception.Damien George
2015-07-23py/lexer: Raise SyntaxError when str hex escape sequence is malformed.Damien George
Addresses issue #1390.
2015-07-20py: Implement memoryview slice assignment.Delio Brignoli
Adds ability to do "memcpy" with memoryview objects, such as: m1[0:3] = m2[2:5].
2015-07-19modbuiltins: Implement round() to precision.Sebastian Plamauer
2015-06-24tests: Adapt basics/memoryerror.py for ports with lower heap sizes.Daniel Campora
2015-06-20py: Use a wrapper to explicitly check self argument of builtin methods.Damien George
Previous to this patch a call such as list.append(1, 2) would lead to a seg fault. This is because list.append is a builtin method and the first argument to such methods is always assumed to have the correct type. Now, when a builtin method is extracted like this it is wrapped in a checker object which checks the the type of the first argument before calling the builtin function. This feature is contrelled by MICROPY_BUILTIN_METHOD_CHECK_SELF_ARG and is enabled by default. See issue #1216.
2015-06-13py: Implement divmod for mpz bignum.Damien George