aboutsummaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)Author
2015-09-15tests/README: Explain how tests get skippedTom Soulanille
2015-09-15py/mpz: Fix calculation of max digit storage for mpz; fix sys.maxsize.Damien George
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.
2015-09-12unix: Enable REPL auto-indent.Damien George
2015-09-11stmhal: fix single precision float printing errorDave Hylands
Fixes #1435.
2015-09-10tests/wipy: Add I2C tests.Daniel Campora
2015-09-10tests/wipy: Disable the REPL on UART before running the UART test.Daniel Campora
2015-09-10tests/wipy: Additional tests for when the UART is un-initialized.Daniel Campora
2015-09-10cc3200: Improve Pin and UART implementation.Daniel Campora
Deassign pins af before assigning. Make uart.any() return the correct value everytime, this requires interrupts to be always enabled.
2015-09-10tests/wipy: Improve UART tests with no pin assignment case.Daniel Campora
2015-09-10tests: Ignore exception chain test on the WiPy.Daniel Campora
Fails because warnings are not enabled on the CC3200.
2015-09-10cc3200: New UART API plus related test.Daniel Campora
2015-09-10cc3200: Add alternate functions list to Pin object.Daniel Campora
Also remove pin.high() and pin.low() methods.
2015-09-10cc3200: Re-work Pin class according to the new API.Daniel Campora
Also add relevant test.
2015-09-07tests: Move int+unicode test to unicode-specific test directory.Damien George
2015-09-07py/lexer: Properly classify floats that look like hex numbers.Damien George
Eg 0e0 almost looks like a hex number but in fact is a float.
2015-09-07py/lexer: Raise SyntaxError when unicode char point out of range.Damien George
2015-09-07py/lexer: Raise NotImplError for unicode name escape, instead of assert.Damien George
2015-09-07tests: Add tests for non-compliant behaviour of lexer.Damien George
2015-09-07py/compile: Refine SyntaxError for repeated use of global/nonlocal.Damien George
2015-09-04py/objstr: For str.endswith(s, start) raise NotImpl instead of assert.Damien George
2015-09-03tests: Add tests to improve coverage of objstr.c.Damien George
2015-09-01py/binary: Add support for array('q') and array('Q').Damien George
2015-09-01py/objstr: Make str.rsplit(None,n) raise NotImpl instead of assert(0).Damien George
2015-09-01tests: Skip exception_chain.py with native emitter.Paul Sokolovsky
2015-09-01tests: Add test for exception-chaining raise syntax.Paul Sokolovsky
2015-08-30tests: Fix non-compliant expected output to match actual behaviour.Damien George
2015-08-30py/objstr: Simplify error handling for bad conversion specifier.Damien George
2015-08-30tests: Add tests for non-compliant behaviour.Damien George
These tests are intended to improve coverage and provide a record of behaviour that's either not implemented or non-compliant to CPython.
2015-08-30tests: Add test where __getitem__ raises IndexError to stop iteration.Damien George
2015-08-30tests: Consolidate all feature check snippets under feature_check/.Paul Sokolovsky
2015-08-30tests: Add feature_check dir to collect capability detection scripts.Paul Sokolovsky
Which are currently intermixed with real scripts and spread around various dirs.
2015-08-29py/objstr: Fix error reporting for unexpected end of modulo format str.Damien George
2015-08-29py/objstr: Fix error type for badly formatted format specifier.Damien George
Was KeyError, should be ValueError.
2015-08-29py/objstr: Make string formatting 8-bit clean.Damien George
2015-08-29tests: Add a few tests for bool, bytearray, float to improve coverage.Damien George
2015-08-30tests: Add byteorder query script.Paul Sokolovsky
2015-08-30tests: Split byteorder-dependent tests to *_endian.py's.Paul Sokolovsky
2015-08-30run-tests: Allow to skip byteorder-dependent tests.Paul Sokolovsky
If byteorder of MicroPython under test and host CPython differ.
2015-08-29tests/ffi_float: Split tgammaf() testcase to a separate test.Paul Sokolovsky
Some libc's may implement tgammaf as a header macro using tgamma(), so don't assume it'll be in the library.
2015-08-28tests: Add test on set/frozenset equality.Paul Sokolovsky
2015-08-28objset: frozensets are hashable.Paul Sokolovsky
2015-08-25tests: For unix ffi float test, add libm.so.6 to library search list.Damien George
Latest Arch Linux doesn't have libm.so as a proper shared object and so we need to load libm.so.6.
2015-08-21tests: Add more tests to improve coverage, mostly testing exceptions.Damien George
2015-08-21tests: Make io test cleanup after itself by removing 'testfile'.Damien George
2015-08-17unix-cpy: Remove unix-cpy. It's no longer needed.Damien George
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.
2015-08-13py: Add stream_tell method, and use for unix and stmhal file tell.blmorris
2015-08-08tests: Remove over-specification of startup bannerTom Soulanille
2015-08-08tests: Fix exceptions when running cmdline tests on windowsstijn
- subprocess.check_output can only handle strings on windows, not bytes, so convert the arguments as such - the pty module is for posix systems only so skip the tests needing it in case it is not available
2015-08-08tests: Always use forward slashes for pathsstijn
This is more consistent and fixes run_micropython on windows as it uses forward slahses to compare paths
2015-08-06run-tests: Test REPL emacs keys, but only if present.Tom Soulanille
Uses cmdline/repl_emacs_check.py to check for presence of emacs keys in repl before doing full feature test.