diff options
| author | Damien George | 2015-08-26 15:29:49 +0100 |
|---|---|---|
| committer | Damien George | 2015-08-29 23:13:51 +0100 |
| commit | 51b9a0d0c4dfa265739708016ad85513d330987f (patch) | |
| tree | 5bbc6249caeaf10eac4301a838822f8f60701ba6 /tests/unicode | |
| parent | 1d350b8ac6c65bd53115bfdc7511e4028f3c69ac (diff) | |
py/objstr: Make string formatting 8-bit clean.
Diffstat (limited to 'tests/unicode')
| -rw-r--r-- | tests/unicode/unicode_str_format.py | 4 | ||||
| -rw-r--r-- | tests/unicode/unicode_str_modulo.py | 3 |
2 files changed, 7 insertions, 0 deletions
diff --git a/tests/unicode/unicode_str_format.py b/tests/unicode/unicode_str_format.py new file mode 100644 index 000000000..bf8505a31 --- /dev/null +++ b/tests/unicode/unicode_str_format.py @@ -0,0 +1,4 @@ +# test handling of unicode chars in format strings + +print('α'.format()) +print('{α}'.format(α=1)) diff --git a/tests/unicode/unicode_str_modulo.py b/tests/unicode/unicode_str_modulo.py new file mode 100644 index 000000000..e9b152473 --- /dev/null +++ b/tests/unicode/unicode_str_modulo.py @@ -0,0 +1,3 @@ +# test handling of unicode chars in string % formatting + +print('α' % ()) |
