Age | Commit message (Collapse) | Author | |
---|---|---|---|
2025-01-26 | py/parsenum: Throw an exception for invalid int literals like "01". | Jeff Epler | |
This includes making int("01") parse in base 10 like standard Python. When a base of 0 is specified it means auto-detect based on the prefix, and literals begining with 0 (except when the literal is all 0's) like "01" are then invalid and now throw an exception. The new error message is different from CPython. It says e.g., `SyntaxError: invalid syntax for integer with base 0: '09'` Additional test cases were added to cover the changed & added code. Co-authored-by: Damien George <damien@micropython.org> Signed-off-by: Jeff Epler <jepler@gmail.com> | |||
2018-02-14 | tests: Automatically skip tests that require eval, exec or frozenset. | Damien George | |
2017-05-12 | tests/basics/lexer: Add line continuation tests for lexer. | Tom Collins | |
Tests for an issue with line continuation failing in paste mode due to the lexer only checking for \n in the "following" character position, before next_char() has had a chance to convert \r and \r\n to \n. | |||
2017-05-09 | tests/basics/lexer: Add lexer tests for input starting with newlines. | Tom Collins | |
2016-12-22 | tests/basics/lexer: Add a test for newline-escaping within a string. | Damien George | |
2015-07-23 | py/lexer: Raise SyntaxError when str hex escape sequence is malformed. | Damien George | |
Addresses issue #1390. | |||
2015-04-04 | tests: Add tests to exercise lexer; and some more complex number tests. | Damien George | |