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
Paul Sokolovsky
2ff2ea5f3b
vm: Handle "raise X from Y" statements the best way we can.
By issuing a warning that exception chaining is not supported, and ignoring
"from Y" argument.
9 years ago
Paul Sokolovsky
21ffa7c4ba
modbuiltins: Consistently use indentation for #if.
9 years ago
Paul Sokolovsky
696eee9475
modffi: dlsym() doesn't set errno, so use ENOENT for OSError.
This may be a bit confusing, as ENOENT is often rendered as "No such
file or directory", but any other code would be only more confusing.
9 years ago
Paul Sokolovsky
a9058bf294
unix: Allow to build libffi from source and link against it.
Linking against local libffi (and other libs in future) is triggered by
"make MICROPY_STANDALONE=1". Before that, dependent libs should be built
with "make deplibs".
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
Tom Soulanille
6433f71e8f
py/objgetitemiter: Make it_iternext() recognize IndexError.
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
Paul Sokolovsky
e8ad47a6ca
tools: Upgrade to upip 0.5.7.
Just dependent micropython-lib modules update for upip, no new
functionality.
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
Damien George
1d350b8ac6
tests: Add a few tests for bool, bytearray, float to improve coverage.
9 years ago
Paul Sokolovsky
a488c266c3
tests: Add byteorder query script.
9 years ago
Bob Clough
86e6ad76cb
stmhal: Add support for STM32F411 Discovery Board (STM32F411E-DISCO).
9 years ago
Paul Sokolovsky
58d9b10d70
tests: Split byteorder-dependent tests to *_endian.py's.
9 years ago
Paul Sokolovsky
0a8b5d160b
run-tests: Allow to skip byteorder-dependent tests.
If byteorder of MicroPython under test and host CPython differ.
9 years ago
Paul Sokolovsky
18c22faf4d
py: Treat -m32 flag as part of CC, LD, etc.
Indeed, this flag efectively selects architecture target, and must
consistently apply to all compiles and links, including 3rd-party
libraries, unlike CFLAGS, which have MicroPython-specific setting.
9 years ago
Paul Sokolovsky
5cb524673e
tests/ffi_float: Split tgammaf() testcase to a separate test.
Some libc's may implement tgammaf as a header macro using tgamma(), so
don't assume it'll be in the library.
9 years ago
Bill Owens
a66a99bfd8
esp8266: Added wifi_mode() to read and set WiFi operating mode.
10 years ago
Paul Sokolovsky
a160b70ced
tests: Add test on set/frozenset equality.
9 years ago
Paul Sokolovsky
8b3b2d04a8
objset: frozensets are hashable.
9 years ago
Damien George
936e25b164
tests: For unix ffi float test, add libm.so.6 to library search list.
Latest Arch Linux doesn't have libm.so as a proper shared object and so
we need to load libm.so.6.
9 years ago
Paul Sokolovsky
5ab0a4a671
README: Add hint about "micropython --help".
Also, hint about possibility to adjust heap size.
9 years ago
Paul Sokolovsky
aa65e1edb3
unix: Bump default heap size to 1MB (2MB on 64-bit systems).
9 years ago
Damien George
d007cb8903
tests: Add more tests to improve coverage, mostly testing exceptions.
9 years ago
Damien George
d292a81e95
tests: Make io test cleanup after itself by removing 'testfile'.
9 years ago
Paul Sokolovsky
22ff397fb1
py: Add MICROPY_PY_BUILTINS_FILTER, disable for minimal ports.
Saves 320 bytes on x86.
9 years ago
Damien George
7f70b60f4d
py: Remove unused compile scope flags, and irrelevant flag compute code.
9 years ago
Paul Sokolovsky
2a6660ba59
extmod/modmachine: Avoid conflicts with system PAGE_SIZE define, if any.
9 years ago
tobbad
1abb449dfb
stmhal: Fixed some typos in stm32f411_af.csv.
9 years ago
Damien George
65dc960e3b
unix-cpy: Remove unix-cpy. It's no longer needed.
unix-cpy was originally written to get semantic equivalent with CPython
without writing functional tests. When writing the initial
implementation of uPy it was a long way between lexer and functional
tests, so the half-way test was to make sure that the bytecode was
correct. The idea was that if the uPy bytecode matched CPython 1-1 then
uPy would be proper Python if the bytecodes acted correctly. And having
matching bytecode meant that it was less likely to miss some deep
subtlety in the Python semantics that would require an architectural
change later on.
But that is all history and it no longer makes sense to retain the
ability to output CPython bytecode, because:
1. It outputs CPython 3.3 compatible bytecode. CPython's bytecode
changes from version to version, and seems to have changed quite a bit
in 3.5. There's no point in changing the bytecode output to match
CPython anymore.
2. uPy and CPy do different optimisations to the bytecode which makes it
harder to match.
3. The bytecode tests are not run. They were never part of Travis and
are not run locally anymore.
4. The EMIT_CPYTHON option needs a lot of extra source code which adds
heaps of noise, especially in compile.c.
5. Now that there is an extensive test suite (which tests functionality)
there is no need to match the bytecode. Some very subtle behaviour is
tested with the test suite and passing these tests is a much better
way to stay Python-language compliant, rather than trying to match
CPy bytecode.
9 years ago
Daniel Campora
0e978349a5
cc3200: Correct smoke test expected result.
9 years ago
Daniel Campora
e9fa7625f4
cc3200: Correct WLAN constructor argument checking.
9 years ago
Daniel Campora
c0c07fb1b6
cc3200: Don't clear the WDT special bit in the bootloader.
9 years ago
Daniel Campora
aa8e8acb7d
cc3200: Change HeartBeat period from 5 to 4 seconds.
9 years ago
Daniel Campora
f837d166e5
cc3200: Fix typo in modpyb.
9 years ago
Daniel Campora
9249242119
cc3200: Remove unneeded loops in the FreeRTOS hooks.
9 years ago
Daniel Campora
641a3d39e1
cc3200: Make sure to update sleep objects when registered.
9 years ago
Daniel Campora
6ff2d54347
cc3200: Small renaming in wdt functions for the sake of consistency.
9 years ago
Daniel Campora
11d21081b4
cc3200: Rework SD API. Increase heap to avoid malloc failures.
9 years ago
Daniel Campora
34c290b678
cc3200: Rename SPI nss param to cs.
The nss param in the pyboard has a different meaning that doesn't
apply to the WiPy.
9 years ago
Daniel Campora
ea5061e409
cc3200: Improve callback API.
Rename "wakes" param to "wake_from" and make "value" an object
instead of an integer.
9 years ago
Daniel Campora
4c5bfe2d10
cc3200: Server side SSL socket requires both certfile and keyfile.
9 years ago