summaryrefslogtreecommitdiffstatshomepage
path: root/tests
Commit message (Collapse)AuthorAge
* extmod/modure: If input string is bytes, return bytes results too.Paul Sokolovsky2017-07-01
| | | | | | This applies to match.group() and split(). For ARM Thumb2, this increased code size by 12 bytes.
* tests/unix/extra_coverage: Add test for mp_vprintf with bad fmt spec.Damien George2017-06-30
|
* tests/basics/namedtuple1: Add test for creating with pos and kw args.Damien George2017-06-29
|
* tests/import: Update comment now that uPy raises correct exception.Damien George2017-06-28
|
* tests/import: Add a test for the builtin __import__ function.Damien George2017-06-28
|
* tests: Auto detect floating point capabilites of the target.Damien George2017-06-26
| | | | | The floating-point precision of the target is detected (0, 30, 32 or 64) and only those tests which can run on the target will be run.
* tests/connect_nonblock: Refactor towards real net_hosted test.Paul Sokolovsky2017-06-23
| | | | | In the future, a special runner for such tests will import each test and call test() function with an address of test server to use.
* tests/net_inet: Move tests which don't require full Internet to net_hosted.Paul Sokolovsky2017-06-23
| | | | | | | | | | The idea is that these tests can be run with just a test server running on a test host, with device under test connecting to it, instead of requiring Internet connection for testing. Such setup is however WIP, and some tests in net_hosted/ are so far written to connect to Internet, as there're not test server written yet. This is expected to evolve over time.
* tests/basics: Add tests for for-else statement.Damien George2017-06-22
|
* tests/net_inet: Add tests for accept and connect in nonblocking mode.Damien George2017-06-21
| | | | | Some of these tests don't require an Internet connection, but here is a good place to put them for now.
* tests/net_inet/test_tls_sites.py: Integration test for SSL connections.Paul Sokolovsky2017-06-21
| | | | | | | | | | | This attempts to bootstrap network tests for MicroPython. This commits sets test/net_inet/ as place for tests which require access to wide Internet. They aren't intended to be run as part of the main testsuite, instead to be run manually on demand. test_tls_sites.py in particular check that it's possible to establish SSL/TLS connection to select sites on the Internet: few references ones, plus those for which problems were reported, and resolved.
* py/objint: In to_bytes(), allow length arg to be any int and check sign.Damien George2017-06-15
|
* py/objint: Support "big" byte-order in int.to_bytes().Damien George2017-06-15
|
* py/compile: Raise SyntaxError if positional args are given after */**.Damien George2017-06-14
| | | | | | | | In CPython 3.4 this raises a SyntaxError. In CPython 3.5+ having a positional after * is allowed but uPy has the wrong semantics and passes the arguments in the incorrect order. To prevent incorrect use of a function going unnoticed it is important to raise the SyntaxError in uPy, until the behaviour is fixed to follow CPython 3.5+.
* py/modthread: Raise RuntimeError in release() if lock is not acquired.Damien George2017-06-14
|
* py/formatfloat: Fix number of digits and exponent sign when rounding.Damien George2017-06-13
| | | | | | | This patch fixes 2 things when printing a floating-point number that requires rounding up of the mantissa: - retain the correct precision; eg 0.99 becomes 1.0, not 1.00 - if the exponent goes from -1 to 0 then render it as +0, not -0
* tests/extmod/vfs_basic: Allow test to pass on embedded targets.Damien George2017-06-11
|
* tests: Convert remaining "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* tests/basics: Convert "sys.exit()" to "raise SystemExit".Paul Sokolovsky2017-06-10
|
* py/objstringio: If created from immutable object, follow copy on write policy.Paul Sokolovsky2017-06-09
| | | | | Don't create copy of immutable object's contents until .write() is called on BytesIO.
* tests/float/builtin_float_minmax: PEP8 fixes.Paul Sokolovsky2017-06-08
|
* tests/float: Convert "sys.exit()" to "raise SystemExit".Damien George2017-06-08
| | | | | The latter is shorter and simpler because it doesn't require importing the sys module.
* extmod/vfs: Allow to statvfs the root directory.Damien George2017-06-07
|
* tests/basics/string_rsplit: Add tests for negative "maxsplit" argument.Damien George2017-06-02
|
* various: Spelling fixesVille Skyttä2017-05-29
|
* tests/basics: Add more tests for unwind jumps from within a try-finally.Damien George2017-05-25
| | | | These tests excercise cases that are fixed by the previous two commits.
* tests/basics/builtin_range: Add tests for negative slicing of range.Damien George2017-05-18
|
* tests/basics/list_slice_3arg: Add more tests for negative slicing.Damien George2017-05-18
|
* tests/io/bytesio_ext: Test read() after seek() past end of BytesIO object.Tom Collins2017-05-15
|
* tests/extmod/vfs_fat_more: Make skippable is uos is not available.Paul Sokolovsky2017-05-13
| | | | Fixes Zephyr tests.
* tests/extmod/vfs_fat: Add test for ilistdir of a non-existent directory.Damien George2017-05-13
|
* tests/basics/lexer: Add line continuation tests for lexer.Tom Collins2017-05-12
| | | | | | 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.
* tests/extmod/vfs: Update tests to reflect new ilistdir() method.Damien George2017-05-10
|
* tests/extmod: Make some vfs tests fully unmount FSs before running.Damien George2017-05-09
| | | | | Otherwise the existing FSs can interfere with the tests, and in some cases the tests can write to the real FS on the device.
* tests/basics/lexer: Add lexer tests for input starting with newlines.Tom Collins2017-05-09
|
* tests/basics: Add memoryview test for big ints.Damien George2017-05-09
|
* tests/basics: Update array test for big-int with lL typecodes.Damien George2017-05-09
|
* py/modio: resource_stream: Implement "package" param handling.Paul Sokolovsky2017-05-06
|
* tests: Move super-as-local test from cpydiff to basic tests.Damien George2017-05-06
| | | | It's now possible to use the name "super" as a local variable.
* tests/micropython: Add test for int.from_bytes with many zero bytes.Damien George2017-05-06
|
* tests/extmod: Add some more VFS tests.Damien George2017-05-05
|
* tests/extmod: Add more tests for VFS FAT.Damien George2017-05-05
|
* tests/cpydiff/core_function_unpacking: Fill in workaround.Paul Sokolovsky2017-05-04
|
* tests/cpydiff/core_import_split_ns_pkgs: Test for split namespace packages.Paul Sokolovsky2017-05-03
|
* tests/cpydiff/core_import_path: Test showing difference in package.__path__.Paul Sokolovsky2017-05-03
|
* tests/io/resource_stream: Add test for uio.resource_stream().Paul Sokolovsky2017-05-03
|
* tests/cpydiff/core_import_prereg: Fill in cause and workaround.Paul Sokolovsky2017-05-02
|
* tests/cpydiff/core_function_userattr: Clarify, fill in cause and workaround.Paul Sokolovsky2017-05-02
|
* tests/cpydiff/core_arguments: Fill in cause/workaround.Paul Sokolovsky2017-05-02
|
* tests/basics: Add tests for int.from_bytes when src has trailing zeros.Damien George2017-04-25
| | | | The trailing zeros should be truncated from the converted value.