summaryrefslogtreecommitdiffstatshomepage
path: root/tests/basics
Commit message (Collapse)AuthorAge
* tests: create result file for test/basics/memoryerror.py .Antonin ENFRUN2014-05-12
| | | | On Mac OS "python3 test/basics/memoryerror.py" never runs out of memory, the process is frozen by the os before.
* objstr: Slice indexing: support bytes properly.Paul Sokolovsky2014-05-11
|
* objstr: Make .split() support bytes.Paul Sokolovsky2014-05-11
|
* objstr: Make .join() support bytes.Paul Sokolovsky2014-05-11
|
* py: Add basic implementation of hasattr() function.Paul Sokolovsky2014-05-11
|
* py: frozenset() creates an empty frozenset.Damien George2014-05-11
|
* py: Give up and make mp_obj_str_get_data() deal with bytes too.Paul Sokolovsky2014-05-11
| | | | | | This is not fully correct re: error handling, because we should check that that types are used consistently (only str's or only bytes), but magically makes lot of functions support bytes.
* objstr: Make *strip() accept bytes.Paul Sokolovsky2014-05-11
|
* tests: Really fix import.Paul Sokolovsky2014-05-11
|
* tests: Fix import.Paul Sokolovsky2014-05-11
|
* objtuple: Go out of the way to support comparison of subclasses.Paul Sokolovsky2014-05-11
| | | | | | | | | | | Two things are handled here: allow to compare native subtypes of tuple, e.g. namedtuple (TODO: should compare type too, currently compared duck-typedly by content). Secondly, allow user sunclasses of tuples (and its subtypes) be compared either. "Magic" I did previously in objtype.c covers only one argument (lhs is many), so we're in trouble when lhs is native type - there's no other option besides handling rhs in special manner. Fortunately, this patch outlines approach with fast path for native types.
* py: Don't try to "bind" types store as attributes of objects.Paul Sokolovsky2014-05-11
| | | | | | | | This was hit when trying to make urlparse.py from stdlib run. Took quite some time to debug. TODO: Reconsile bound method creation process better, maybe callable is to generic type to bind at all?
* objstr: Make .[r]partition() work with bytes.Paul Sokolovsky2014-05-11
|
* objlist: Support list slice deletion.Paul Sokolovsky2014-05-10
|
* objlist: Implement non-growing slice assignment.Paul Sokolovsky2014-05-10
| | | | Slice value to assign can be only a list so far too.
* objtype: Implement ->getiter() method for instances.Paul Sokolovsky2014-05-10
| | | | Includes support for native bases.
* objnamedtuple: Support iteration.Paul Sokolovsky2014-05-10
|
* objstr: Implement .lower() and .upper().Paul Sokolovsky2014-05-10
|
* objset: Add frozenset tests, skippable if frozenset not available.Paul Sokolovsky2014-05-10
|
* objtype: Don't treat inheritance from "object" as from native type.Paul Sokolovsky2014-05-10
| | | | | | | | | | | "object" type in MicroPython currently doesn't implement any methods, and hopefully, we'll try to stay like that for as long as possible. Even if we have to add something eventually, look up from there might be handled in adhoc manner, as last resort (that's not compliant with Python3 MRO, but we're already non-compliant). Hence: 1) no need to spend type trying to lookup anything in object; 2) no need to allocate subobject when explicitly inheriting from object; 3) and having multiple bases inheriting from object is not a case of incompatible multiple inheritance.
* py: Fix base "detection" for int('0<hexdigit>', 16).Paul Sokolovsky2014-05-10
|
* bytes: Implement comparison and other binary operations.Paul Sokolovsky2014-05-10
| | | | Should support everything supported by strings.
* py: Add keyword arg support to enumerate constructor.Damien George2014-05-06
| | | | | | | | Need to have a policy as to how far we go adding keyword support to built ins. It's nice to have, and gets better CPython compatibility, but hurts the micro nature of uPy. Addresses issue #577.
* tests: Add testcases for catching user Exception subclasses.Paul Sokolovsky2014-05-02
|
* objtype: .print() Exception instances in adhoc way.Paul Sokolovsky2014-05-02
| | | | This is ugly, just as expected.
* Fix the builtin min() and max() functions (and add tests).Andrew Scheller2014-05-01
| | | | Fixes #539
* tests: Add test for calling inherited native method on subclass.Paul Sokolovsky2014-04-30
|
* tests: Add test for accessing attribute of inherited native type.Paul Sokolovsky2014-04-29
|
* tests: Add basic tests for subclassing native types and using special methods.Paul Sokolovsky2014-04-29
| | | | Even of these, some features do not yet work as expected.
* py: Fix bug in map lookup of interned string vs non-interned.Damien George2014-04-28
| | | | | | | Had choice of either interning or forcing full equality comparison, and chose latter. See comments in mp_map_lookup. Addresses issue #523.
* py: Implement keyword-only args.Damien George2014-04-27
| | | | | | | Implements 'def f(*, a)' and 'def f(*a, b)', but not default keyword-only args, eg 'def f(*, a=1)'. Partially addresses issue #524.
* objstr: Implement .lstrip() & .rstrip().Paul Sokolovsky2014-04-26
| | | | Share code with .strip(). TODO: optimize .rstrip().
* py: Support instance __call__ method.Paul Sokolovsky2014-04-25
|
* test/class-super: Expose super() breakage.Paul Sokolovsky2014-04-19
|
* objarray: Implement slice subscription.Paul Sokolovsky2014-04-19
|
* modstruct: Initial implementation of struct.pack().Paul Sokolovsky2014-04-19
|
* sequence: Fix glaring bug in sequence comparison.Paul Sokolovsky2014-04-18
|
* tests: Move gen_context to import tests, because it relies on import.Damien George2014-04-17
|
* objgenerator: Generator must execute in its defining lexical context.Paul Sokolovsky2014-04-17
| | | | | I.e. with its own globals. So, just as for functions, we need to switch globals when resuming a generator.
* tests: Split out those tests requiring float and import.Damien George2014-04-17
| | | | | | | | | Tests in basics (which should probably be renamed to core) should not rely on float, or import any non-built-in files. This way these tests can be run when those features are not available. All test in basics now pass on the pyboard using stmhal port, except for string-repr which has some issues with character hex printing.
* tests: Remove print('flush') from 2 tests, since stmhal now works.Damien George2014-04-17
| | | | Fixing the USB problem on stmhal now gets these 2 tests working.
* run-tests can now skip certain tests when run under Travis CIAndrew Scheller2014-04-16
| | | | | See the `skip_travis_tests` variable. Fixes #495 (also tidied up usage of os.path.basename() function)
* py: Add builtin functions bin and oct, and some tests for them.Damien George2014-04-15
|
* tests: Disable memoryerror.py test, since it fails on travis.Damien George2014-04-15
| | | | | Would be good to test this, but need to find a way to optionally not running it when on travis.
* travis: More tests output debugging.Damien George2014-04-15
|
* travis: More tests debugging.Damien George2014-04-15
|
* travis: Debugging failing tests.Damien George2014-04-15
|
* py: Implement __delitem__ method for classes.Paul Sokolovsky2014-04-15
|
* tests: Add property test.Damien George2014-04-13
|
* tests: Make tests pass on pyboard.Damien George2014-04-13
|