aboutsummaryrefslogtreecommitdiff
path: root/tests/basics
AgeCommit message (Collapse)Author
2017-03-15tests/basics/string_format2: Adjust comment now that tests succeed.Damien George
2017-03-14tests/basics/struct_micropython: Add test for 'S' typecode in ustruct.Damien George
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.
2017-03-10tests/basics/fun_error: Split out skippable test.Paul Sokolovsky
2017-03-09tests/dict_fromkeys: Split out skippable part.Paul Sokolovsky
2017-03-09tests/basic: Make various tests skippable.Paul Sokolovsky
2017-03-07tests/basics/unpack1.py: Test if *a, = b copies b when b is a list.Krzysztof Blazewicz
2017-03-07tests/basics/string_join.py: Add test case where argument is not iterable.Krzysztof Blazewicz
2017-03-04tests/basic: Split tests into working with small ints and not working.Paul Sokolovsky
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.
2017-03-03tests/basics: Add further tests for OrderedDict.Damien George
2017-02-27py/objarray: Disallow slice-assignment to read-only memoryview.Damien George
Also comes with a test for this. Fixes issue #2904.
2017-02-20py/objlist: For list slice assignment, allow RHS to be a tuple or list.Damien George
Before this patch, assigning anything other than a list would lead to a crash. Fixes issue #2886.
2017-02-17tests/basics/string_join: Add more tests for string concatenation.Damien George
2017-02-15tests/basic/: Make various tests skippable.Paul Sokolovsky
To run the testsuite on small ports.
2017-02-15tests/gen_yield_from_close: Use range() instead of reversed().Paul Sokolovsky
As a "more basic" builtin iterator, present even in smaller ports.
2017-02-15tests/dict_fromkeys: Revert to use reversed() to run in native codegen mode.Paul Sokolovsky
2017-02-15tests/basic/[a-f]*: Make skippable.Paul Sokolovsky
For small ports which don't have all features enabled.
2017-02-14tests/builtin_dir: The most expected thing in sys is exit, test for it.Paul Sokolovsky
2017-02-14tests/comprehension1, containment: Split set tests to separate files.Paul Sokolovsky
To make skippable.
2017-02-09py/objtype: Implement __delattr__ and __setattr__.dmazzella
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.
2017-02-03tests/basics/string_format_modulo: Add more tests for dict formatting.Damien George
2017-02-02tests: Split tests for 2- and 3-arg pow().Paul Sokolovsky
2017-02-02py: Added optimised support for 3-argument calls to builtin.pow()Nicko van Someren
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.
2017-02-02tests/basics/set_binop: Add tests for inplace set operations.Damien George
2017-01-31tests/basics/zip: Make skippable.Paul Sokolovsky
2017-01-22tests/basics/builtin_help: Add test for help('modules').Damien George
2017-01-22tests: Add test for builtin help function.Damien George
2017-01-21tests: Add test for int.from_bytes() for arbitrary-precision integer.Paul Sokolovsky
This test works only for MICROPY_LONGINT_IMPL == MICROPY_LONGINT_IMPL_MPZ and needs a way of skipping in other cases.
2017-01-20tests/basics: Add test for assignment of attribute to bound method.Damien George
2017-01-17py/binary: mp_binary_get_size: Raise error on unsupported typecodes.Paul Sokolovsky
Previouly, we had errors checked in callers, which led to duplicate code or missing checks in some places.
2017-01-17tests/basics: Improve runtime.c test coverage.Rami Ali
2017-01-17tests: Update tests, and add new ones, for recent generator tweaks.Damien George
2017-01-09tests: Update test suite to be compatible with CPython 3.6.Damien George
CPython 3.6 has a few changes that, when run on uPy's test suite, give a different output to CPython 3.5. uPy currently officially supports the 3.4 language definition, but it's useful to be able to run the test suite with 3.4/3.5/3.6 versions of CPython. This patch makes such changes to support 3.6.
2017-01-07tests/array*: Allow to skip test if "array" is unavailable.Paul Sokolovsky
2017-01-06tests/types1: Split out set type test to set_types.Paul Sokolovsky
set isn't the most basic type and can be disabled by a port.
2017-01-05tests/run-tests: Allow to skip set tests.Paul Sokolovsky
If sets are not enabled, set literals lead to SyntaxError during parsing, so it requires feature_check. Set tests are skipped based on set_*.py pattern.
2016-12-28tests/basics: Add tests to improve coverage of binary.c.Rami Ali
2016-12-28tests/basics: Add tests for parsing of ints with base 36.Damien George
2016-12-22tests/basics/lexer: Add a test for newline-escaping within a string.Damien George
2016-12-21tests: Add tests to improve coverage of objarray.c.Rami Ali
2016-12-21tests: Add tests to improve coverage of runtime.c.Rami Ali
2016-12-20tests/basics: Improve test coverage for generators.Rami Ali
2016-12-20tests/basics/set_pop: Improve coverage of set functions.Damien George
2016-12-20tests/basics: Add test for builtin locals().Damien George
2016-12-20tests/basics/builtin_dir: Add test for dir() of a type.Damien George
2016-12-20tests/basics: Improve mpz test coverage.Rami Ali
2016-12-19tests/struct*: Make skippable.Paul Sokolovsky
2016-12-09tests: Update for required byteorder arg for int.from_bytes()/to_bytes().Paul Sokolovsky
2016-11-26tests/basics: Enable tests for list slice getting with 3rd arg.Damien George
Also add a test to check case when 3rd arg is 0.
2016-11-26tests/basics: Change dict_fromkeys test so it doesn't use generators.Damien George
And then it can run with the native emitter.
2016-11-26tests/basics: Add tests for if-expressions.Damien George