- Dec 19, 2017
-
-
Damien George authored
In this case the result should always be 0, even if 2nd arg is 0.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
Damien George authored
set_equal is called only from set_binary_op, and this guarantees that the second arg to set_equal is always a set or frozenset. So there is no need to do a further check.
-
Damien George authored
-
Damien George authored
-
Damien George authored
-
- Dec 18, 2017
-
-
Damien George authored
-
Eric Poulsen authored
Breaks up HW SPI transfers into maximum chunks of 32736 bits (4092 bytes), because this is the maximum that the underlying ESP IDF will accept.
-
- Dec 16, 2017
-
-
Paul Sokolovsky authored
Previously, testing of stackless build happened (manually) in travis-stackless branch. However, stackless offers important featureset, so it's worth to test it as a part of the main CI. Strict stackless is used because it's the "real" stackless build, which avoids using C stack as much as possible (non-strict just prefers heap over C stack, but may end up using the latter).
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
This build sets CFLAGS_EXTRA itself, but preserve user's value as passed on make command line/etc.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
-
- Dec 15, 2017
-
-
Paul Sokolovsky authored
CPython 3.6 contains some backward incompatible changes, and further version(s) are expected to have more. As we anyway implemente 3.4 with some features of 3.5, refer to 3.5 docs to avoid confusion. Examples of 3.6 backward incompatibilities: https://docs.python.org/3.6/library/json.html#json.dump https://docs.python.org/3.6/library/json.html#json.load > Changed in version 3.6: All optional parameters are now keyword-only. https://docs.python.org/3.6/library/functions.html#type > Changed in version 3.6: Subclasses of type which don’t override > type.__new__ may no longer use the one-argument form to get the > type of an object. https://docs.python.org/3.6/library/collections.html#collections.namedtuple > Changed in version 3.6: The verbose and rename parameters became > keyword-only arguments.
-
Paul Sokolovsky authored
This implements .pend_throw(exc) method, which sets up an exception to be triggered on the next call to generator's .__next__() or .send() method. This is unlike .throw(), which immediately starts to execute the generator to process the exception. This effectively adds Future-like capabilities to generator protocol (exception will be raised in the future). The need for such a method arised to implement uasyncio wait_for() function efficiently (its behavior is clearly "Future" like, and normally would require to introduce an expensive Future wrapper around all native couroutines, like upstream asyncio does). py/objgenerator: pend_throw: Return previous pended value. This effectively allows to store an additional value (not necessary an exception) in a coroutine while it's not being executed. uasyncio has exactly this usecase: to mark a coro waiting in I/O queue (and thus not executed in the normal scheduling queue), for the purpose of implementing wait_for() function (cancellation of such waiting coro by a timeout).
-
Paul Sokolovsky authored
tinytest is written with the idea that tests won't write to stdout, so it prints test name witjout newline, then executes test, then writes status. But MicroPython tests write to stdout, so the test output becomes a mess. So, instead print it like: # starting basics/andor.py ... test output ... basics/andor.py: OK
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
If TEST is defined, file it refers to will be used as the testsuite source (should be generated with tools/tinytest-codegen.py). "make-bin-testsuite" script is introduce to build such a binary.
-
Paul Sokolovsky authored
The whole idea of --list-tests is that we prepare a list of tests to run later, and currently don't have a connection to target board. Similarly for --write-exp - only "python3" binary would be required for this operation, not "micropython".
-
Paul Sokolovsky authored
Way to reproduce a UnicodeEncodeError without this patch: LC_ALL=C tinytest-codegen.py ...
-
- Dec 14, 2017
-
-
Damien George authored
Some compilers can treat enum types as signed, in which case 3 bits is not enough to encode all mp_raw_code_kind_t values. So change the type to mp_uint_t.
-
Paul Sokolovsky authored
-
Paul Sokolovsky authored
Everything happens automagically with overridden "sdist" from sdist_upip.py.
-
Paul Sokolovsky authored
If we test for unix target, do that explicitly. pyb var will be None for commands like --list-tests too.
-
Paul Sokolovsky authored
Instead of passing thru more and more options from tinytest-codegen to run-tests --list-tests, pipe output of run-tests --list-tests into tinytest-codegen.
-
Paul Sokolovsky authored
The idea that --list-tests would be enough to produce list of tests for tinytest-codegen didn't work, because normal run-tests processing heavily relies on dynamic target capabilities discovery, and test filtering happens as the result of that. So, approach the issue from different end - allow to specify arbitrary filtering criteria as run-tests arguments. This way, specific filters will be still hardcoded, but at least on a particular target's side, instead of constant patching tinytest-codegen and/or run-tests.
-
Paul Sokolovsky authored
"skip <test>" message could leak before.
-
Paul Sokolovsky authored
It relies on MICROPY_CPYTHON_COMPAT being defined.
-
Damien George authored
-
Petr Viktorin authored
This format is used in 2-color LED matrices and in e-ink displays like SSD1606.
-
Damien George authored
-
- Dec 13, 2017
-
-
Damien George authored
Because otherwise the function can return with data still waiting to be clocked out, and CS might then be disabled before the SPI transaction is complete. Fixes issue #3487.
-
Damien George authored
This call is required before using the device (some operating systems don't need it but others do). Fixes issue #3476.
-
Paul Sokolovsky authored
Gets passed to run-tests --list-tests to get actual list of tests to use. If --target= is not given, legacy set hardcoded in tinytest-codegen itself is used. Also, get rid of tinytest test groups - they aren't really used for anything, and only complicate processing. Besides, one of the next step is to limit number of tests per a generated file to control the binary size, which also will require "flat" list of tests.
-
Paul Sokolovsky authored
Lists tests to be executed, subject to all other filters requested. This options would be useful e.g. for scripts like tools/tinytest-codegen.py, which currently contains hardcoded filters for particular a particular target and can't work for multiple targets.
-
Damien George authored
-
Damien George authored
This value is "1" when the medium should not be removed, "0" otherwise.
-