Alex March
cc0cc67815
tests/extmod/uhashlib_sha256: Rename sha256.py test.
8 years ago
Alex March
b83ac44e82
tests/extmod/uhashlib_sha1: Coverage for SHA1 algorithm.
8 years ago
Alex March
964fb2450e
tests/basics/gc1: Garbage collector threshold() coverage.
8 years ago
Alex March
fbca4f94b3
tests/extmod/vfs_fat_oldproto: Test old block device protocol.
8 years ago
Alex March
38a9359339
tests/extmod/vfs_fat_fsusermount: Improve fsusermount test coverage.
8 years ago
Damien George
25c6fc731b
tests/basics: Add test for builtin "delattr".
8 years ago
Damien George
bc5b896f24
tests/basics/builtin_slice: Add test for "slice" builtin name.
8 years ago
Damien George
5694201930
extmod/vfs_fat_file: Make file.close() a no-op if file already closed.
As per CPython semantics. In particular, file.__del__() should not raise
an exception if the file is already closed.
8 years ago
Alex March
cb20d999bc
tests/extmod/vfs_fat: Improve VFS test coverage.
Covered case:
- Stat cases
- Invalid read/write/flush/close
- Invalid mkdir/rmdir/remove/getcwd
- File seek/tell, modes a/x/+, t/b
- Writing to a full disk
- Full path rename, slash trim
- Rename cases
- Bytestring listdir
- File object printing
8 years ago
Damien George
1e3a7c4ac5
tests/run-tests: Enable extmod/machine1.py on pyboard.
It now works.
8 years ago
Damien George
6caca3259f
tests: Add test to print full KeyError exc from failed dict lookup.
8 years ago
Damien George
e9404e5f5f
tests: Improve coverage of array, range, dict, slice, exc, unicode.
8 years ago
Damien George
453c2e8f55
tests/cmdline: Improve coverage test for printing bytecode.
8 years ago
Damien George
34d0b3f85c
tests/micropython: Add tests for heap_lock, and emergency exceptions.
8 years ago
Alex March
e42186d356
tests/extmod/vfs_fat: Replace asserts with prints and expected outputs.
8 years ago
Damien George
11ab807d76
tests/extmod: Add test for ujson.load().
8 years ago
Alex March
f274561e16
tests/extmod/vfs_fat: Test coverage for remove() and rmdir().
8 years ago
Damien George
5e22afce41
tests: Improve test coverage of py/compile.c.
8 years ago
Damien George
7f0e563de3
tests/micropython: Add test for micropython.opt_level() function.
8 years ago
Paul Sokolovsky
3dabaae47d
tests/io/bytesio_ext: Add test for readinto().
8 years ago
Paul Sokolovsky
49e140488d
tests/io/write_ext: Add description comment.
8 years ago
Damien George
82af4d6749
tests: Improve coverage of struct with test for non-compliant behaviour.
8 years ago
Alex March
9fdba0e09c
tests/extmod/uzlib: Test adaptive huffman tree for tinflate coverage.
8 years ago
stijn
7f19b1c3eb
tests: Fix expected output of verbose cmdline test
The output might contain more than one line ending in 5b so properly skip
everything until the next known point.
This fixes test failures in appveyor debug builds.
8 years ago
Alex March
addd1d3db1
tests/extmod/btree1: Checks for put, seq, string print and unsupported binary op.
8 years ago
Damien George
cd20027f56
tests/run-tests: Disable cmdline/cmd_showbc test on Windows.
Disabled until a proper fix is found.
8 years ago
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