diff options
author | Jeff Epler <jepler@gmail.com> | 2022-01-10 09:03:27 -0600 |
---|---|---|
committer | Damien George <damien@micropython.org> | 2022-01-19 15:34:32 +1100 |
commit | 037b2c72a1d5b54a5508a58ab2044628a7a39fa4 (patch) | |
tree | 5f1b8ea184099bf576e76ace8a5d61f52bbb6988 /tests/basics/string_format_error.py | |
parent | 5e506567a390db1b1d2df39ae192f39ed9f617c3 (diff) |
py/objstr: Support '{:08}'.format("Jan") like Python 3.10.
The new test has an .exp file, because it is not compatible with Python 3.9
and lower.
See CPython version of the issue at https://bugs.python.org/issue27772
Signed-off-by: Jeff Epler <jepler@gmail.com>
Diffstat (limited to 'tests/basics/string_format_error.py')
-rw-r--r-- | tests/basics/string_format_error.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tests/basics/string_format_error.py b/tests/basics/string_format_error.py index 708348d59..74dc6c52e 100644 --- a/tests/basics/string_format_error.py +++ b/tests/basics/string_format_error.py @@ -1,7 +1,7 @@ # tests for errors in {} format string try: - '{0:0}'.format('zzz') + '{0:=}'.format('zzz') except (ValueError): print('ValueError') |