summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* test: Add run-tests-exp.sh, script to run testsuite with only sh dependency.Paul Sokolovsky2014-07-13
| | | | | | This script uses expected test results as generated by run-tests --write-exp, and requires only standard unix shell funtionality (no bash). It is useful to run testsuite on embedded systems, where there's no CPython and Bash.
* run-tests: Add option to write CPython's test results to .exp files.Paul Sokolovsky2014-07-12
| | | | Mostly to run testsuite on targets which doesn't have CPython.
* moductypes: Add symbolic constants to specify bitfield position/length.Paul Sokolovsky2014-07-11
|
* moductypes: Foreign data interface module, roughly based on ctype ideas.Paul Sokolovsky2014-07-09
| | | | | But much smaller and memory-efficient. Uses Python builtin data structures (dict, tuple, int) to describe structure layout.
* tests: Rename test scripts, changing - to _ for consistency.Damien George2014-07-05
| | | | | | From now on, all new tests must use underscore. Addresses issue #727.
* py: Automatically ake __new__ a staticmethod.Damien George2014-07-05
| | | | Addresses issue #622.
* tests: Write output in byte mode, not text mode.Damien George2014-06-28
| | | | This enables testing unicode and non-unicode implementations.
* Merge branch 'master' into unicodeDamien George2014-06-28
|\ | | | | | | | | Conflicts: py/mpconfig.h
| * py: Add protection against printing too nested or recursive data structures.Paul Sokolovsky2014-06-28
| | | | | | | | With a test which cannot be automatically validated so far.
* | tests: Add basic test for unicode file i/o.Paul Sokolovsky2014-06-27
| |
* | tests: Test for explicit start/end args to str methods for unicode.Paul Sokolovsky2014-06-27
| |
* | tests: Add tests for unicode find()/rfind()/index().Paul Sokolovsky2014-06-27
| |
* | tests: Add test for unicode string iteration.Paul Sokolovsky2014-06-27
| |
* | tests: Add unicode test.Chris Angelico2014-06-27
|/
* tests: Add test for catching infinite function recursion.Paul Sokolovsky2014-06-27
| | | | Put into misc/ to not complicate life for builds with check disabled.
* modstruct: Fix alignment handling issues.Paul Sokolovsky2014-06-25
| | | | Also, factor out mp_binary_get_int() function.
* tests/float/: Skip tests if "math" module is not available.Paul Sokolovsky2014-06-20
|
* bench: Three ways to process a byte buffer.Paul Sokolovsky2014-06-19
|
* bench: Add test for map() vs inplace operations in array-likes.Paul Sokolovsky2014-06-19
| | | | | map() is 5 times slower. That's mostly because of inefficiency of creating containers from iterables of unknown length (like map()).
* bench: Add tests for constructing various containers from iterator.Paul Sokolovsky2014-06-19
| | | | | | 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.
* bench: Add test for function call overhead.Paul Sokolovsky2014-06-19
| | | | | For a trivial operation, calling a function is 5 times slower than doing operation inline.
* objstr: Be 8-bit clean even for repr().Paul Sokolovsky2014-06-14
| | | | | | | | | 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).
* py: Rename builtin "io" to "_io".Paul Sokolovsky2014-06-12
| | | | | | | | 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).
* tests: Add testcases for "complicated" args to generator functions.Paul Sokolovsky2014-06-11
|
* py: Implement __contains__ special method.Damien George2014-06-10
|
* objtype: Fix passing of class param to inherited classmethods.Paul Sokolovsky2014-06-08
| | | | This is getting more and more tangled, but that's old news.
* tests: Run 'micropython' tests on pyboard.Damien George2014-06-08
|
* tests: Add more tests for default keyword-only args.Damien George2014-06-08
|
* tests: Fix default arg test.Damien George2014-06-08
|
* py: Make sure getattr() works with non-interned strings (by interning them).Paul Sokolovsky2014-06-08
|
* py: Implement default keyword only args.Damien George2014-06-07
| | | | Should finish addressing issue #524.
* Merge pull request #667 from Rosuav/testfixesPaul Sokolovsky2014-06-06
|\ | | | | A couple of small fixes to run-tests
| * Turn the Travis CI test skipping mechanism into something more genericChris Angelico2014-06-06
| |
| * Figure out the test_name before using it (significant only to Travis skips)Chris Angelico2014-06-06
| |
* | Fix str.modulo when precision is specified.Dave Hylands2014-06-05
|/
* py: Raise TypeError when trying to format non-int with %x,%o,%X.Damien George2014-06-05
| | | | | This behaviour follows Python 3.5 standard (in 3.4 it's a DeprecationWarning which we'd rather make a TypeError).
* Change comments (mainly URLs) to no longer specifically say Python 3.3Chris Angelico2014-06-06
|
* Merge pull request #663 from Rosuav/floatpercentxDamien George2014-06-05
|\ | | | | Remove tests that fail under CPython 3.5
| * Remove tests that fail under CPython 3.5Chris Angelico2014-06-05
| | | | | | | | | | | | | | 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.
* | objstr: Implement "%(key)s" % {} formatting for strings and dicts.Paul Sokolovsky2014-06-05
|/ | | | | Also, make sure that args to "*" format specifiers are bounds-checked properly and don't lead for segfaults in case of mismatch.
* py: Implement full behaviour of dict.update(), and dict().Damien George2014-06-03
| | | | | | | | | | | | | 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.
* tests: Add feature test for when heap allocation is disabled.Damien George2014-05-31
|
* tests: Change --test_dirs to --test-dirs.Damien George2014-05-31
|
* Merge pull request #632 from stinos/tests-dir-argumentDamien George2014-05-31
|\ | | | | tests: Add argument to allow specifying which directories to test
| * tests: Add argument to allow specifying which directories to teststijn2014-05-28
| |
* | py: Fix stack underflow with optimised for loop.Damien George2014-05-31
| |
* | tests: Add another test for break-from-for-loop.Damien George2014-05-31
| |
* | add methods isspace(), isalpha(), isdigit(), isupper() and islower() to strKim Bauters2014-05-31
| |
* | tests: Add test for break in for.Paul Sokolovsky2014-05-31
| | | | | | | | For #635 / 25c84643b6c4da169cdb11de54f027e3c477c301.
* | objstr: *strip(): If nothing is stripped, don't create dup string.Paul Sokolovsky2014-05-30
| |