summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
Commit message (Collapse)AuthorAge
* tests/basics/namedtuple1: Add test for creating with pos and kw args.Damien George2017-06-29
|
* tests/basics: Add tests for for-else statement.Damien George2017-06-22
|
* py/objint: In to_bytes(), allow length arg to be any int and check sign.Damien George2017-06-15
|
* py/objint: Support "big" byte-order in int.to_bytes().Damien George2017-06-15
|
* py/compile: Raise SyntaxError if positional args are given after */**.Damien George2017-06-14
| | | | | | | | In CPython 3.4 this raises a SyntaxError. In CPython 3.5+ having a positional after * is allowed but uPy has the wrong semantics and passes the arguments in the incorrect order. To prevent incorrect use of a function going unnoticed it is important to raise the SyntaxError in uPy, until the behaviour is fixed to follow CPython 3.5+.
* tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* tests/basics/string_rsplit: Add tests for negative "maxsplit" argument.Damien George2017-06-02
|
* various: Spelling fixesVille Skyttä2017-05-29
|
* tests/basics: Add more tests for unwind jumps from within a try-finally.Damien George2017-05-25
| | | | These tests excercise cases that are fixed by the previous two commits.
* tests/basics/builtin_range: Add tests for negative slicing of range.Damien George2017-05-18
|
* tests/basics/list_slice_3arg: Add more tests for negative slicing.Damien George2017-05-18
|
* tests/basics/lexer: Add line continuation tests for lexer.Tom Collins2017-05-12
| | | | | | Tests for an issue with line continuation failing in paste mode due to the lexer only checking for \n in the "following" character position, before next_char() has had a chance to convert \r and \r\n to \n.
* tests/basics/lexer: Add lexer tests for input starting with newlines.Tom Collins2017-05-09
|
* tests/basics: Add memoryview test for big ints.Damien George2017-05-09
|
* tests/basics: Update array test for big-int with lL typecodes.Damien George2017-05-09
|
* tests: Move super-as-local test from cpydiff to basic tests.Damien George2017-05-06
| | | | It's now possible to use the name "super" as a local variable.
* tests/basics: Add tests for int.from_bytes when src has trailing zeros.Damien George2017-04-25
| | | | The trailing zeros should be truncated from the converted value.
* tests: Add tests for calling super and loading a method directly.Damien George2017-04-22
|
* tests/basics: Add test for tuple inplace add.Damien George2017-04-05
|
* tests/basics: Add tests for raising ValueError when range() gets 0 step.Damien George2017-04-05
|
* tests/basics: Add tests for list and bytearray growing using themselves.Damien George2017-04-02
|
* tests/basics: Add test for super() when self is closed over.Damien George2017-03-27
|
* tests/basics/bytes_add: Add tests for optimised bytes addition.Damien George2017-03-16
|
* tests/basics: Move string-modulo-format int tests to dedicated file.Damien George2017-03-15
|
* tests/basics: Add test for string module formatting with int argument.Damien George2017-03-15
|
* tests/basics/string_format2: Adjust comment now that tests succeed.Damien George2017-03-15
|
* tests/basics/struct_micropython: Add test for 'S' typecode in ustruct.Damien George2017-03-14
| | | | | | | | The 'S' typecode is a uPy extension so it should be grouped with the other extension (namely 'O' typecode). Testing 'S' needs uctypes which is an extmod module and not always available, so this test is made optional and will only be run on ports that have (u)struct and uctypes. Otherwise it will be silently skipped.
* tests/basics/fun_error: Split out skippable test.Paul Sokolovsky2017-03-10
|
* tests/dict_fromkeys: Split out skippable part.Paul Sokolovsky2017-03-09
|
* tests/basic: Make various tests skippable.Paul Sokolovsky2017-03-09
|
* tests/basics/unpack1.py: Test if *a, = b copies b when b is a list.Krzysztof Blazewicz2017-03-07
|
* tests/basics/string_join.py: Add test case where argument is not iterable.Krzysztof Blazewicz2017-03-07
|
* tests/basic: Split tests into working with small ints and not working.Paul Sokolovsky2017-03-04
| | | | | | Tests which don't work with small ints are suffixed with _intbig.py. Some of these may still work with long long ints and need to be reclassified later.
* tests/basics: Add further tests for OrderedDict.Damien George2017-03-03
|
* py/objarray: Disallow slice-assignment to read-only memoryview.Damien George2017-02-27
| | | | Also comes with a test for this. Fixes issue #2904.
* py/objlist: For list slice assignment, allow RHS to be a tuple or list.Damien George2017-02-20
| | | | | Before this patch, assigning anything other than a list would lead to a crash. Fixes issue #2886.
* tests/basics/string_join: Add more tests for string concatenation.Damien George2017-02-17
|
* tests/basic/: Make various tests skippable.Paul Sokolovsky2017-02-15
| | | | To run the testsuite on small ports.
* tests/gen_yield_from_close: Use range() instead of reversed().Paul Sokolovsky2017-02-15
| | | | As a "more basic" builtin iterator, present even in smaller ports.
* tests/dict_fromkeys: Revert to use reversed() to run in native codegen mode.Paul Sokolovsky2017-02-15
|
* tests/basic/[a-f]*: Make skippable.Paul Sokolovsky2017-02-15
| | | | For small ports which don't have all features enabled.
* tests/builtin_dir: The most expected thing in sys is exit, test for it.Paul Sokolovsky2017-02-14
|
* tests/comprehension1, containment: Split set tests to separate files.Paul Sokolovsky2017-02-14
| | | | To make skippable.
* py/objtype: Implement __delattr__ and __setattr__.dmazzella2017-02-09
| | | | | | This patch implements support for class methods __delattr__ and __setattr__ for customising attribute access. It is controlled by the config option MICROPY_PY_DELATTR_SETATTR and is disabled by default.
* tests/basics/string_format_modulo: Add more tests for dict formatting.Damien George2017-02-03
|
* tests: Split tests for 2- and 3-arg pow().Paul Sokolovsky2017-02-02
|
* py: Added optimised support for 3-argument calls to builtin.pow()Nicko van Someren2017-02-02
| | | | | | Updated modbuiltin.c to add conditional support for 3-arg calls to pow() using MICROPY_PY_BUILTINS_POW3 config parameter. Added support in objint_mpz.c for for optimised implementation.
* tests/basics/set_binop: Add tests for inplace set operations.Damien George2017-02-02
|
* tests/basics/zip: Make skippable.Paul Sokolovsky2017-01-31
|
* tests/basics/builtin_help: Add test for help('modules').Damien George2017-01-22
|