From b648e98ad01d7f5c4aa102c4848507b5c31c859e Mon Sep 17 00:00:00 2001 From: Damien George Date: Wed, 26 Aug 2015 15:45:06 +0100 Subject: py/objstr: Fix error reporting for unexpected end of modulo format str. --- tests/basics/string_format_modulo.py | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'tests/basics/string_format_modulo.py') diff --git a/tests/basics/string_format_modulo.py b/tests/basics/string_format_modulo.py index 05b00ef14..2e4909220 100644 --- a/tests/basics/string_format_modulo.py +++ b/tests/basics/string_format_modulo.py @@ -111,3 +111,8 @@ try: '%l' % 1 except ValueError: print('ValueError') + +try: + 'a%' % 1 +except ValueError: + print('ValueError') -- cgit v1.2.3