Daniel Campora
57fa14b5be
cc3200: New WLAN API including test.
9 years ago
Daniel Campora
dbdcb58d64
cc3200: New irq API, affects all classes that provide the irq method.
9 years ago
stijn
dfa915a6af
tests: Omit process output parsing in case of CalledProcessError
Adding a line-end makes the determination of skip_native fail as it compares
the output against b'CRASH' while it is in fact b'CRASH\n'
9 years ago
Delio Brignoli
e6978a4e26
py: Fix call args when a stararg is followed by keyword args.
9 years ago
Daniel Campora
dffa9f6da6
cc3200: New SD and RTC API plus os and time modules' extensions.
9 years ago
Daniel Campora
660f8613fd
tests/wipy: Remove unneeded dependencies to pyb.Pin.
9 years ago
Alex March
15018291b2
tests: Add escaped quotes tests for REPL.
Test possible combinations of single and double quotes with escaped
quotes and parenthesis with and without function calls in REPL.
Covers: #1419
9 years ago
Daniel Campora
22b4c28f85
cc3200: New ADC API.
9 years ago
Daniel Campora
0e52d9860a
tests/wipy: Improve I2C tests.
9 years ago
Daniel Campora
aba75e1233
cc3200: New SPI API.
9 years ago
Daniel Campora
41f6948545
cc3200: New WDT API.
9 years ago
Daniel Campora
8332044f75
cc3200: Add UART.ODD and UART.EVEN to select parity.
9 years ago
Daniel Campora
d5ec336eef
cc3200: Replace Pin.PULL_NONE with None.
9 years ago
Daniel Campora
e77abc261b
cc3200: Default peripheral ID support on I2C.
9 years ago
Daniel Campora
7d6b6f6681
cc3200: Make UART choose default id when not given.
9 years ago
Tom Soulanille
aeb62f9ae3
py/objslice: Make slice attributes (start/stop/step) readable.
Configurable with MICROPY_PY_BUILTINS_SLICE_ATTRS. Disabled by default.
9 years ago
Tom Soulanille
04fffe6562
tests/README: Explain how tests get skipped
9 years ago
Damien George
8b4fb4fe14
py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.
When creating constant mpz's, the length of the mpz must be exactly how
many digits are used (not allocated) otherwise these numbers are not
compatible with dynamically allocated numbers.
Addresses issue #1448 .
9 years ago
Damien George
3ca84026db
unix: Enable REPL auto-indent.
9 years ago
Dave Hylands
9d6128acdc
stmhal: fix single precision float printing error
Fixes #1435 .
9 years ago
Daniel Campora
f352fe82a5
tests/wipy: Add I2C tests.
9 years ago
Daniel Campora
d265df589e
tests/wipy: Disable the REPL on UART before running the UART test.
9 years ago
Daniel Campora
4cc0cd6cab
tests/wipy: Additional tests for when the UART is un-initialized.
9 years ago
Daniel Campora
4d7fa05b43
cc3200: Improve Pin and UART implementation.
Deassign pins af before assigning. Make uart.any() return the
correct value everytime, this requires interrupts to be always
enabled.
9 years ago
Daniel Campora
f8b98d8329
tests/wipy: Improve UART tests with no pin assignment case.
9 years ago
Daniel Campora
88ca6c94d9
tests: Ignore exception chain test on the WiPy.
Fails because warnings are not enabled on the CC3200.
9 years ago
Daniel Campora
f91f212d9f
cc3200: New UART API plus related test.
9 years ago
Daniel Campora
36821d095a
cc3200: Add alternate functions list to Pin object.
Also remove pin.high() and pin.low() methods.
9 years ago
Daniel Campora
d5e256486e
cc3200: Re-work Pin class according to the new API.
Also add relevant test.
9 years ago
Damien George
75a811a6df
tests: Move int+unicode test to unicode-specific test directory.
9 years ago
Damien George
2b000474d9
py/lexer: Properly classify floats that look like hex numbers.
Eg 0e0 almost looks like a hex number but in fact is a float.
9 years ago
Damien George
0be3c70cd8
py/lexer: Raise SyntaxError when unicode char point out of range.
9 years ago
Damien George
081f9325f5
py/lexer: Raise NotImplError for unicode name escape, instead of assert.
9 years ago
Damien George
a7ffa972f3
tests: Add tests for non-compliant behaviour of lexer.
9 years ago
Damien George
558a016e2c
py/compile: Refine SyntaxError for repeated use of global/nonlocal.
9 years ago
Damien George
55b11e6d38
py/objstr: For str.endswith(s, start) raise NotImpl instead of assert.
9 years ago
Damien George
25afc7da0d
tests: Add tests to improve coverage of objstr.c.
9 years ago
Damien George
81794fcd31
py/binary: Add support for array('q') and array('Q').
9 years ago
Damien George
22602cc37b
py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0).
9 years ago
Paul Sokolovsky
1b693543aa
tests: Skip exception_chain.py with native emitter.
9 years ago
Paul Sokolovsky
ab2594e341
tests: Add test for exception-chaining raise syntax.
9 years ago
Damien George
39c91d3624
tests: Fix non-compliant expected output to match actual behaviour.
9 years ago
Damien George
000730ecaa
py/objstr: Simplify error handling for bad conversion specifier.
9 years ago
Damien George
c9fa667252
tests: Add tests for non-compliant behaviour.
These tests are intended to improve coverage and provide a record of
behaviour that's either not implemented or non-compliant to CPython.
9 years ago
Damien George
c2ec2ad8fb
tests: Add test where __getitem__ raises IndexError to stop iteration.
9 years ago
Paul Sokolovsky
a3fe307400
tests: Consolidate all feature check snippets under feature_check/.
9 years ago
Paul Sokolovsky
1a1b48e51a
tests: Add feature_check dir to collect capability detection scripts.
Which are currently intermixed with real scripts and spread around various
dirs.
9 years ago
Damien George
b648e98ad0
py/objstr: Fix error reporting for unexpected end of modulo format str.
9 years ago
Damien George
7ef75f9f75
py/objstr: Fix error type for badly formatted format specifier.
Was KeyError, should be ValueError.
9 years ago
Damien George
51b9a0d0c4
py/objstr: Make string formatting 8-bit clean.
9 years ago