diff options
| author | Damien George <damien.p.george@gmail.com> | 2015-09-03 23:06:18 +0100 |
|---|---|---|
| committer | Damien George <damien.p.george@gmail.com> | 2015-09-03 23:06:18 +0100 |
| commit | 25afc7da0db43754f6b4373a10b66551dd3cbd57 (patch) | |
| tree | e2e116af73a03aaf6e11b4b0065e5f73eb6a91af /tests/basics/string_format.py | |
| parent | e2aa1177986d11cbd19ab84ca41b6f0dce51ad01 (diff) | |
tests: Add tests to improve coverage of objstr.c.
Diffstat (limited to 'tests/basics/string_format.py')
| -rw-r--r-- | tests/basics/string_format.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/basics/string_format.py b/tests/basics/string_format.py index b0e49f530..d8724c947 100644 --- a/tests/basics/string_format.py +++ b/tests/basics/string_format.py @@ -207,3 +207,9 @@ try: '{:*"1"}'.format('zz') except ValueError: print('ValueError') + +# unknown format code for str arg +try: + '{:X}'.format('zz') +except ValueError: + print('ValueError') |
