Damien George
cda09727b4
tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.
8 years ago
Tom Collins
760aa0996f
tests/basics/lexer: Add line continuation tests for lexer.
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.
8 years ago
Damien George
852c215d76
tests/extmod/vfs: Update tests to reflect new ilistdir() method.
8 years ago
Damien George
9bd67d9fbc
tests/extmod: Make some vfs tests fully unmount FSs before running.
Otherwise the existing FSs can interfere with the tests, and in some
cases the tests can write to the real FS on the device.
8 years ago
Tom Collins
d00d062af2
tests/basics/lexer: Add lexer tests for input starting with newlines.
8 years ago
Damien George
e711e2d44a
tests/basics: Add memoryview test for big ints.
8 years ago
Damien George
2e9e14980d
tests/basics: Update array test for big-int with lL typecodes.
8 years ago
Paul Sokolovsky
4a4490ffcc
py/modio: resource_stream: Implement "package" param handling.
8 years ago
Damien George
084824f866
tests: Move super-as-local test from cpydiff to basic tests.
It's now possible to use the name "super" as a local variable.
8 years ago
Damien George
dce7dd4259
tests/micropython: Add test for int.from_bytes with many zero bytes.
8 years ago
Damien George
1b3e372418
tests/extmod: Add some more VFS tests.
8 years ago
Damien George
6c8b57a902
tests/extmod: Add more tests for VFS FAT.
8 years ago
Paul Sokolovsky
12ea06567c
tests/cpydiff/core_function_unpacking: Fill in workaround.
8 years ago
Paul Sokolovsky
92657c671f
tests/cpydiff/core_import_split_ns_pkgs: Test for split namespace packages.
8 years ago
Paul Sokolovsky
3923f96dc6
tests/cpydiff/core_import_path: Test showing difference in package.__path__.
8 years ago
Paul Sokolovsky
7d4ba9d257
tests/io/resource_stream: Add test for uio.resource_stream().
8 years ago
Paul Sokolovsky
c1b19115e5
tests/cpydiff/core_import_prereg: Fill in cause and workaround.
8 years ago
Paul Sokolovsky
8bb84cc627
tests/cpydiff/core_function_userattr: Clarify, fill in cause and workaround.
8 years ago
Paul Sokolovsky
58ecbc7752
tests/cpydiff/core_arguments: Fill in cause/workaround.
8 years ago
Damien George
810133d97d
tests/basics: Add tests for int.from_bytes when src has trailing zeros.
The trailing zeros should be truncated from the converted value.
8 years ago
Damien George
30badd1ce1
tests: Add tests for calling super and loading a method directly.
8 years ago
Damien George
5335942b59
py/compile: Refactor handling of special super() call.
This patch refactors the handling of the special super() call within the
compiler. It removes the need for a global (to the compiler) state variable
which keeps track of whether the subject of an expression is super. The
handling of super() is now done entirely within one function, which makes
the compiler a bit cleaner and allows to easily add more optimisations to
super calls.
Changes to the code size are:
bare-arm: +12
minimal: +0
unix x64: +48
unix nanbox: -16
stmhal: +4
cc3200: +0
esp8266: -56
8 years ago
Paul Sokolovsky
9e8f316392
extmod/moductypes: Fix bigint handling for 32-bit ports.
8 years ago
Damien George
c7c14f1634
tests/micropython: Add test for micropython.kbd_intr().
8 years ago
Paul Sokolovsky
57b5ee2fcf
tests/run-tests: Don't post-process CRASH result in any way.
If we got a CRASH result, return early, similar to SKIP. This is important
because previous refactor changed branching logic a bit, so CRASH now gets
post-processed into CRASH\n, which broke remote hardware tests.
8 years ago
Damien George
61616e84ce
extmod/machine_signal: Rename "inverted" arg to "invert", it's shorter.
A shorter name takes less code size, less room in scripts and is faster to
type at the REPL.
Tests and HW-API examples are updated to reflect the change.
8 years ago
Paul Sokolovsky
5b8122f2bb
tests/run-tests: Search feature checks wrt to main script location.
If run-tests script is run from another dir, we still want to look up
feature checks in run-tests' dir.
8 years ago
Damien George
967cad7434
tests/extmod/utimeq1: Improve coverage of utimeq module.
8 years ago
Damien George
b6fff4186d
tests/basics: Add test for tuple inplace add.
8 years ago
Damien George
dcd8f52766
tests/basics: Add tests for raising ValueError when range() gets 0 step.
8 years ago
Peter Hinch
468c6f9da1
extmod/modframebuf: Make monochrome bitmap formats start with MONO_.
MONO_xxx is much easier to read if you're not familiar with the code.
MVLSB is deprecated but kept for backwards compatibility, for the time
being.
This patch also updates the associated docs and tests.
8 years ago
Damien George
805b1c8bc3
tests/run-tests: Update names of tests that may need skipping.
8 years ago
Damien George
677fb31015
tests/float: Add tests for hashing float and complex numbers.
8 years ago
Paul Sokolovsky
831e157226
tests/run-tests: Introduce generic "minimal" target.
Used e.g. by Zephyr port.
8 years ago
Paul Sokolovsky
806c07c898
tests/micropython/heapalloc_iter: Improve skippability.
8 years ago
Paul Sokolovsky
28876d3902
tests/float/byte*_construct: Skip on missing array module.
8 years ago
Paul Sokolovsky
499ea8b253
tests/extmod/vfs_fat_fileio*: Improve skippability.
Should be skipped on missing uso, uerrno modules.
8 years ago
Paul Sokolovsky
b099aeb3ca
run-tests: Add feature check for "const" keyword and skip related tests.
8 years ago
Paul Sokolovsky
b9e9cfcfc1
tests: vfs_fat_fileio.py is too big to be parsed in 16K heap, split in 2.
This restores ability to run testsuite with 16K heap.
8 years ago
Paul Sokolovsky
5b2db4bb51
tests/run-tests: Be sure to close Pyboard object on completion.
So underlying device was properly closed too.
8 years ago
Damien George
bf51e2ff98
tests/basics: Add tests for list and bytearray growing using themselves.
8 years ago
Damien George
734775524e
tests/basics: Add test for super() when self is closed over.
8 years ago
Damien George
bfb48c1620
tests/float: Add tests for round() of inf, nan and large number.
8 years ago
Damien George
bacb52aa2d
tests/float: Add tests for math funcs that return ints.
One should test bigint, inf and nan to make sure all cases are covered.
8 years ago
Paul Sokolovsky
4a4bb84e92
tests/heapalloc_str: Test no-replacement case for str.replace().
8 years ago
Peter Hinch
231cfc84a7
extmod/modframebuf: Add support for monochrome horizontal format.
MHLSB and MHMSB formats are added to the framebuf module, which have 8
adjacent horizontal pixels represented in a single byte.
8 years ago
Damien George
74faf4c5fc
unix/coverage: Enable scheduler and add tests for it.
8 years ago
Damien George
c772817dee
tests/micropython: Add tests for micropython.schedule().
8 years ago
Damien George
eeff0c3528
tests/basics/bytes_add: Add tests for optimised bytes addition.
8 years ago
Damien George
ecb4357fe1
tests/basics: Move string-modulo-format int tests to dedicated file.
8 years ago