summaryrefslogtreecommitdiff
path: root/tests/unicode/unicode.py
AgeCommit message (Collapse)Author
2025-02-25all: Upgrade to ruff v0.9.6.Christian Clauss
Signed-off-by: Christian Clauss <cclauss@me.com>
2020-03-30tests: Format all Python code with black, except tests in basics subdir.David Lechner
This adds the Python files in the tests/ directory to be formatted with ./tools/codeformat.py. The basics/ subdirectory is excluded for now so we aren't changing too much at once. In a few places `# fmt: off`/`# fmt: on` was used where the code had special formatting for readability or where the test was actually testing the specific formatting.
2018-11-26py/unicode: Fix check for valid utf8 being stricter about contn chars.Damien George
2017-09-06py/objstr: Add check for valid UTF-8 when making a str from bytes.tll
This patch adds a function utf8_check() to check for a valid UTF-8 encoded string, and calls it when constructing a str from raw bytes. The feature is selectable at compile time via MICROPY_PY_BUILTINS_STR_UNICODE_CHECK and is enabled if unicode is enabled. It costs about 110 bytes on Thumb-2, 150 bytes on Xtensa and 170 bytes on x86-64.
2016-10-17tests: Improve coverage of array, range, dict, slice, exc, unicode.Damien George
2015-09-07tests: Move int+unicode test to unicode-specific test directory.Damien George
2015-09-07py/lexer: Raise SyntaxError when unicode char point out of range.Damien George
2015-04-04tests: Add missing tests for builtins, and many other things.Damien George
2014-06-27tests: Add unicode test.Chris Angelico