Damien George
9f72a14920
tests/basics: Add test for printing OSError when errno is unknown.
8 years ago
Damien George
17b4509564
tests/basics: Add test constructing a set from a non-trivial expression.
8 years ago
Damien George
3c582bc7cb
tests/import: Add test for compiling "import a.b as c".
8 years ago
Damien George
6cf2a3966e
tests/basics: Add further tests for nonlocal scoping and closures.
8 years ago
Damien George
b32c01b748
py/compile: Fix async-for/async-with to work with simpler exc on stack.
There is now just the exception instance on the stack when an exception is
raised, not the full (type, exc, traceback).
8 years ago
Damien George
443cc0114d
tests/basics: Add test for set.difference_update with arg being itself.
8 years ago
Damien George
2c7716fed0
py/objset: Ensure that use of frozenset.update raises an exception.
8 years ago
Damien George
290daa15d9
tests/float: Add test for parsing a float from an empty string.
8 years ago
Alex March
670376c5cb
tests/extmod/vfs_fat_ramdisk: Add test for VFS.statvfs().
8 years ago
Damien George
791b65f4b2
py/modmicropython: Add micropython.const, alias for identity function.
Having a micropython.const identity function, and writing "from micropython
import const" at the start of scripts that use the const feature, allows to
write scripts which are compatible with CPython, and with uPy builds that
don't include const optimisation.
This patch adds such a function and updates the tests to do the import.
8 years ago
Damien George
f65e4f0b8f
tests/cmdline/cmd_showbc: Fix test now that 1 value is stored on stack.
This corresponds to the change in the way exception values are stored on
the Python value stack.
8 years ago
Damien George
38b54b65d4
tests/micropython: Add tests for const names being replaced in parser.
8 years ago
Damien George
3f0c1c2452
tests/basics: Add test case for overflowing Py stack in try-finally.
8 years ago
Paul Sokolovsky
d46de80162
tests/uzlib_decompio_gz: Test for DecompIO with gzip bitstream.
8 years ago
Damien George
3f5fe6269e
tests/run-tests: Add --via-mpy option to run test from precompiled code.
With mpy-cross built, tests can now be run by first compiling them to .mpy
files, and then executing the .mpy file. Usage: ./run-tests --via-mpy
8 years ago
Damien George
bb954d80a4
tests: Get cmdline verbose tests running again.
The showbc function now no longer uses the system printf so works
correctly.
8 years ago
Paul Sokolovsky
60592fd23c
tests/array1: Add tests for "l", "L" array types to improve coverage.
8 years ago
Paul Sokolovsky
b85bcd671c
tests/struct1: Test "l" specifier to improve coverage.
8 years ago
Damien George
b9672bcbe8
tests/extmod: Add test for machine.time_pulse_us().
8 years ago
Damien George
2b7c4a1878
tests/basics: Add errno1 test, to check basics of uerrno module.
8 years ago
Damien George
67a4813601
tests/extmod/urandom: Add urandom tests for error cases.
8 years ago
Damien George
b236b1974b
tests/pyb: Update exp file for previously updated extint test.
8 years ago
Damien George
2f02960607
tests/pyb: Add test for ExtInt when doing swint while disabled.
8 years ago
Damien George
763e04bba5
tests/run-tests: Disable thread/stress_recurse.py test on Travis.
It has reliability issues (cause unknown at this time).
8 years ago
Damien George
cac8dc3414
tests/extmod/framebuf1: Add tests for scrolling in the x-direction.
8 years ago
Paul Sokolovsky
61e2dfd97d
tests/extmod/uzlib_decompio: Add zlib bitstream testcases.
8 years ago
Damien George
2d8740a4d1
tests/extmod: Add a test for framebuf module, tested by coverage build.
8 years ago
Paul Sokolovsky
fafd587514
tests/extmod: Add test for uzlib.DecompIO.
8 years ago
Damien George
58f3861358
tests/unix/extra_coverage: Add test for str/bytes with invalid hash.
8 years ago
Delio Brignoli
f98bb2ddcb
py/mpprint: Fail an assertion with unsupported format specifiers.
Arguments of an unknown type cannot be skipped and continuing to parse a
format string after encountering an unknown format specifier leads to
undefined behaviour. This patch helps to find use of unsupported formats.
8 years ago
Damien George
8f8f699eb7
tests/run-tests: Disable thread_gc1.py test on Travis.
It has reliability issues (cause unknown at this time).
8 years ago
Radomir Dopieralski
fea7fe45ea
tests/extmod/vfs_fat_ramdisk: Add tests for VFS.umount()
Try to un-mount a file system and re-mount it again.
8 years ago
Damien George
3b5affa0d1
tests/cmdline: Add test for -O option to check optimisation value.
8 years ago
Damien George
78bc31e294
tests/run-tests: Disable thread/stress_heap.py when running on Travis.
It has reliability issues and sometimes fails on Travis (reason currently
unknown).
8 years ago
Paul Sokolovsky
c428367543
extmod/modubinascii: Make crc32() support configurable.
Disable by default, enable in unix port.
8 years ago
Pavol Rusnak
39799f7564
extmod/modubinascii: implement binascii.crc32
8 years ago
Damien George
567e7fcd12
tests/run-tests: Disable thread/thread_lock4.py on Travis.
It has reliability issues that need to be worked out.
8 years ago
Paul Sokolovsky
a6fc90f92a
tests/uzlib_decompress: Actually test raw DEFLATE stream.
8 years ago
Damien George
bb19e7b94b
tests/basics/special_methods: Enable tests for extra special methods.
These additional special methods are enabled on most ports so we can test
them in this test.
8 years ago
rguillon
ed6a1ada24
tests/basics: Add a test file for overriding special methods.
8 years ago
Damien George
095e43a9a5
py/sequence: Allow to use bignums as indices in slice objects.
See issue #2264 .
8 years ago
Damien George
f6a8e84a25
tests/basics: Add test for break from within try within a for-loop.
8 years ago
Damien George
b359cf2911
tests/misc/non_compliant: Add tests to improve coverage testing.
8 years ago
Damien George
d5f42c9daf
tests/basics: Add more list tests to improve coverage testing.
8 years ago
Damien George
3c82d1d34b
tests/basics: Add more tuple tests to improve coverage testing.
8 years ago
Paul Sokolovsky
0be4a7712d
tests: Rename zlibd_decompress.py -> uzlib_decompress.py.
To use the actual current name.
8 years ago
Paul Sokolovsky
8897dcb2a1
tests/basics: bytes/str.partition/rpartition are now optional.
Skip tests if not available.
8 years ago
Paul Sokolovsky
3eb532e974
extmod/modbtree: Implement __contains__ operation.
8 years ago
Paul Sokolovsky
bc3912980a
tests/machine1: Revamp to work with unix port (which has "umachine").
8 years ago
Paul Sokolovsky
eb0e3bab1e
tests/machine_mem.py: Too non-portable, rework as an example for unix port.
8 years ago