Paul Sokolovsky
cbc489dff5
tests: Actuall add feature check for complex type being available.
9 years ago
Paul Sokolovsky
eed2f36ae2
tests/run-tests: Allow to skip complex tests if it's not compiled in.
9 years ago
Paul Sokolovsky
54a1d9ecb7
tests/extra_coverage: Update for sys.modules addition.
9 years ago
Damien George
7a99639cff
py: Fix function calls that have positional and a star-arg-with-iterator.
Addresses issue #1678 .
9 years ago
Damien George
0d9b450701
stmhal: Make uart.write() function correctly for timeout=0.
In non-blocking mode (timeout=0), uart.write() can now transmit all of its
data without raising an exception. uart.read() also works correctly in
this mode.
As part of this patch, timout_char now has a minimum value which is long
enough to transfer 1 character.
Addresses issue #1533 .
9 years ago
Ryan Shaw
f99491cbf7
stmhal: uart.any() function now returns number of bytes available.
9 years ago
Paul Sokolovsky
ff8c4188f4
tests/run-tests: Improve robustness of REPL tests.
Unconditionally wait for MicroPython banner. On overloaded systems, when
using emulators, etc. initial executable startup may take more than 20ms.
9 years ago
Damien George
9a56912ad1
py/compile: Do proper checking of * and ** in function definition.
This patch checks that there is only one *, and that ** is last in the
arg list.
9 years ago
Damien George
0e3f29cc99
py: Check that second argument to hasattr is actually a string.
Fixes issue #1623 .
9 years ago
Paul Sokolovsky
4120f32292
tests/int_big_*: Add more tests for result normalization.
Tested by comparability to small int/casting to bool.
9 years ago
Paul Sokolovsky
b56c635d64
tests/int_big_xor: Test that xor result is normalized.
And thus can be successfully used in comparisons, etc.
9 years ago
Paul Sokolovsky
b64e0575fd
tests/float/string_format: Add testcase for incorrect rounding for %f.
9 years ago
Damien George
2c83894257
py: Implement default and star args for lambdas.
9 years ago
danicampora
e4404fbef0
cc3200: Unmount all user file systems after a soft reset.
9 years ago
Paul Sokolovsky
772f0b4159
tests/jni: Add test for working with container of List interface.
9 years ago
Henrik Sölver
35e7d9c0f1
stmhal/can: Fix a bug in filter handling.
Reported here: http://forum.micropython.org/viewtopic.php?f=2&t=845
9 years ago
Paul Sokolovsky
aee704ebe1
extmod/modure: Make sure that errors in regexps are caught early.
9 years ago
Paul Sokolovsky
0bd3f3291d
tests/base/struct1.py: Add test for repetition counters.
9 years ago
stijn
24b03561bd
tests: Make sure test output has \r\n line-ends when running on Windows
This is the case already when using just subprocess.check_output, but in
the special cases (cmdline, meminfo, ...) the carriage return gets lost
during output processing so restore it in the end.
This fixes the micropython/meminfo.py test on Windows.
9 years ago
adminpete
d6201fc4b7
py: In inline asm, vldr and vstr offsets now in bytes not words.
As per ARM convention.
9 years ago
danicampora
1950295735
cc3200: Set pin direction first, then value. Fixes #1542 .
9 years ago
Paul Sokolovsky
9a334d41e3
tests/jni: Test for basic object operations.
9 years ago
danicampora
075ca64521
cc3200: Fix UART tests after correcting uart.read() behaviour.
9 years ago
danicampora
1f2daf4304
cc3200: Correct ticks_cpu and ticks_us functions in time module.
9 years ago
Damien George
e693e52442
tests: Disable some tests for pyboard that do not run correctly.
9 years ago
Paul Sokolovsky
acea9352a9
tests/extmod: Add tests for sleep_ms/us(), ticks_ms/us/diff().
Simple smoke tests, mostly for coverage. Added to extmod based on the fact
that they're extensions to standard modules.
9 years ago
danicampora
9c72c71c05
cc3200: WLAN class can retrieve the existing instance.
9 years ago
danicampora
f4c50f1cfc
tests/wipy: Make WLAN test more stable.
9 years ago
danicampora
ae70e98ed4
cc3200: Fix time.ticks_* functions.
9 years ago
danicampora
36ae417c9f
docs: Add wipy and network.server documentation.
9 years ago
danicampora
2e0cd20a1d
cc3200: Refactor network module to make the server a propper object.
9 years ago
danicampora
d8137178bb
cc3200: Create wipy module, remove HeartBeat class.
The heartbeat is now controllable via a single function within the
wipy module.
9 years ago
Damien George
096d1e4512
py: Add lsl/lsr/asr opcode support to inline Thumb2 assembler.
9 years ago
danicampora
e19dfe1c32
cc3200: In scan results rename 'auth' field to 'sec'.
As defined by the new API, since 'auth' is actually a tuple
composed by the security type and the key.
9 years ago
Damien George
4bf3f2d3c0
py: Fix with+for+return bug by popping for-iter when unwinding exc stack.
Addresses issue #1182 .
9 years ago
Damien George
4300c7dba2
py: Remove dependency on printf/fwrite in mp_plat_print.
See issue #1500 .
9 years ago
Paul Sokolovsky
2430dfac31
tests/jni: Start adding modjni tests.
These are currently not intended to run with the rest of testsuite, as
they require dependencies and special environment setup anyway (drafted
in tests/jni/README).
9 years ago
Damien George
2ec835f572
tests: Add more tests for viper 16/32-bit load/store, and ellipsis.
9 years ago
Damien George
b8f9ac5411
py: Implement ptr32 load and store in viper emitter.
9 years ago
Damien George
3aa7dd23c9
unix: Add exit and paste-mode hints to shell startup banner.
Thanks to @nyov for the initial patch.
9 years ago
Damien George
0334058fa4
Rename "Micro Python" to "MicroPython" in REPL, help, readme's and misc.
9 years ago
Peter Hinch
0e87bc7be6
tests: In pyb RTC tests, check wakeup register values.
9 years ago
Damien George
4fb5ff86ee
tests: Add test for evaluation order of dictionary key/value pairs.
In Python 3.4 the value is evaluated before the key. In Python 3.5 it's
key then value.
9 years ago
Damien George
9f5f156b9d
py/emitnative: Raise ViperTypeError for unsupported unary ops.
9 years ago
Damien George
7e12a601b8
py/compile: Fix edge case when constant-folding negation of integer.
Also adds tests specifically for testing constant folding.
9 years ago
Paul Sokolovsky
062bd81814
tests/basics/builtin_range: PEP8 fixes.
9 years ago
Damien George
34f26ea862
tests: Allow tests to pass against CPython 3.5.
All breaking changes going from 3.4 to 3.5 are contained in
basics/python34.py.
9 years ago
Damien George
e5635f4ab3
py: Catch all cases of integer (big and small) division by zero.
9 years ago
Damien George
2065373f67
py/mpz: Fix bignum anding of large negative with smaller positive int.
9 years ago
Damien George
a81539db25
tests: Add further tests for mpz code.
9 years ago