aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2014-06-28tests: Write output in byte mode, not text mode.Damien George
This enables testing unicode and non-unicode implementations.
2014-06-28Merge branch 'master' into unicodeDamien George
Conflicts: py/mpconfig.h
2014-06-28py: Add protection against printing too nested or recursive data structures.Paul Sokolovsky
With a test which cannot be automatically validated so far.
2014-06-27tests: Add basic test for unicode file i/o.Paul Sokolovsky
2014-06-27tests: Test for explicit start/end args to str methods for unicode.Paul Sokolovsky
2014-06-27tests: Add tests for unicode find()/rfind()/index().Paul Sokolovsky
2014-06-27tests: Add test for unicode string iteration.Paul Sokolovsky
2014-06-27tests: Add unicode test.Chris Angelico
2014-06-27tests: Add test for catching infinite function recursion.Paul Sokolovsky
Put into misc/ to not complicate life for builds with check disabled.
2014-06-25modstruct: Fix alignment handling issues.Paul Sokolovsky
Also, factor out mp_binary_get_int() function.
2014-06-20tests/float/: Skip tests if "math" module is not available.Paul Sokolovsky
2014-06-19bench: Three ways to process a byte buffer.Paul Sokolovsky
2014-06-19bench: Add test for map() vs inplace operations in array-likes.Paul Sokolovsky
map() is 5 times slower. That's mostly because of inefficiency of creating containers from iterables of unknown length (like map()).
2014-06-19bench: Add tests for constructing various containers from iterator.Paul Sokolovsky
Both "bound" (like, length known) and "unbound" (length unknown) are tested. All of list, tuple, bytes, bytesarray offer approximately the same performance, with "unbound" case being 30 times slower.
2014-06-19bench: Add test for function call overhead.Paul Sokolovsky
For a trivial operation, calling a function is 5 times slower than doing operation inline.
2014-06-14objstr: Be 8-bit clean even for repr().Paul Sokolovsky
This will allow roughly the same behavior as Python3 for non-ASCII strings, for example, print("<phrase in non-Latin script>".split()) will print list of words, not weird hex dump (like Python2 behaves). (Of course, that it will print list of words, if there're "words" in that phrase at all, separated by ASCII-compatible whitespace; that surely won't apply to every human language in existence).
2014-06-12py: Rename builtin "io" to "_io".Paul Sokolovsky
Functionality we provide in builtin io module is fairly minimal. Some code, including CPython stdlib, depends on more functionality. So, there's a choice to either implement it in C, or move it _io, and let implement other functionality in Python. 2nd choice is pursued. This setup matches CPython too (_io is builtin, io is Python-level).
2014-06-11tests: Add testcases for "complicated" args to generator functions.Paul Sokolovsky
2014-06-10py: Implement __contains__ special method.Damien George
2014-06-08objtype: Fix passing of class param to inherited classmethods.Paul Sokolovsky
This is getting more and more tangled, but that's old news.
2014-06-08tests: Run 'micropython' tests on pyboard.Damien George
2014-06-08tests: Add more tests for default keyword-only args.Damien George
2014-06-08tests: Fix default arg test.Damien George
2014-06-08py: Make sure getattr() works with non-interned strings (by interning them).Paul Sokolovsky
2014-06-07py: Implement default keyword only args.Damien George
Should finish addressing issue #524.
2014-06-06Merge pull request #667 from Rosuav/testfixesPaul Sokolovsky
A couple of small fixes to run-tests
2014-06-05Fix str.modulo when precision is specified.Dave Hylands
2014-06-06Turn the Travis CI test skipping mechanism into something more genericChris Angelico
2014-06-06Figure out the test_name before using it (significant only to Travis skips)Chris Angelico
2014-06-05py: Raise TypeError when trying to format non-int with %x,%o,%X.Damien George
This behaviour follows Python 3.5 standard (in 3.4 it's a DeprecationWarning which we'd rather make a TypeError).
2014-06-06Change comments (mainly URLs) to no longer specifically say Python 3.3Chris Angelico
2014-06-05Merge pull request #663 from Rosuav/floatpercentxDamien George
Remove tests that fail under CPython 3.5
2014-06-05objstr: Implement "%(key)s" % {} formatting for strings and dicts.Paul Sokolovsky
Also, make sure that args to "*" format specifiers are bounds-checked properly and don't lead for segfaults in case of mismatch.
2014-06-05Remove tests that fail under CPython 3.5Chris Angelico
See http://bugs.python.org/issue19995 for rationale. As micropython currently aims for Python 3.3 compatibility I have not changed behaviour, but this change allows the test suite to be run against a newer Python without having spurious failures.
2014-06-03py: Implement full behaviour of dict.update(), and dict().Damien George
Add keyword args to dict.update(), and ability to take a dictionary as argument. dict() class constructor can now use dict.update() directly. This patch loses fast path for dict(other_dict), but is that really needed? Any anyway, this idiom will now re-hash the dictionary, so is arguably more memory efficient. Addresses issue #647.
2014-05-31tests: Add feature test for when heap allocation is disabled.Damien George
2014-05-31tests: Change --test_dirs to --test-dirs.Damien George
2014-05-31Merge pull request #632 from stinos/tests-dir-argumentDamien George
tests: Add argument to allow specifying which directories to test
2014-05-31py: Fix stack underflow with optimised for loop.Damien George
2014-05-31tests: Add another test for break-from-for-loop.Damien George
2014-05-31add methods isspace(), isalpha(), isdigit(), isupper() and islower() to strKim Bauters
2014-05-31tests: Add test for break in for.Paul Sokolovsky
For #635 / 25c84643b6c4da169cdb11de54f027e3c477c301.
2014-05-30objstr: *strip(): If nothing is stripped, don't create dup string.Paul Sokolovsky
2014-05-30objstr: *strip(): Fix handling of one-char subject strings.Paul Sokolovsky
2014-05-29py: Implement bignum '&' with negatives on lhs and rhs.Damien George
Needs proper coverage testing. Doesn't implement -ve & -ve. Addresses issue #611.
2014-05-28tests: Add argument to allow specifying which directories to teststijn
2014-05-26tests: Add small testcase for 3-arg slices.Paul Sokolovsky
2014-05-25objlist: Implement support for arbitrary (3-arg) slices.Paul Sokolovsky
2014-05-25objlist: Implement growing slice assignment.Paul Sokolovsky
This means that complete slice operations are supported for lists (but not for bytearray's and array.array's).
2014-05-24objstr: Implement .endswith().Paul Sokolovsky