summaryrefslogtreecommitdiff
path: root/tests/basics/string_format.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/basics/string_format.py')
-rw-r--r--tests/basics/string_format.py6
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')