summaryrefslogtreecommitdiff
path: root/Lib/test/test_long.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/test/test_long.py')
-rw-r--r--Lib/test/test_long.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/Lib/test/test_long.py b/Lib/test/test_long.py
index 7c883baebb..5b860dd36b 100644
--- a/Lib/test/test_long.py
+++ b/Lib/test/test_long.py
@@ -700,6 +700,9 @@ class LongTest(unittest.TestCase):
self.assertRaisesRegex(ValueError, 'Cannot specify both', format, 3, '_,d')
self.assertRaisesRegex(ValueError, 'Cannot specify both', format, 3, ',_d')
+ self.assertRaisesRegex(ValueError, "Cannot specify ',' with 's'", format, 3, ',s')
+ self.assertRaisesRegex(ValueError, "Cannot specify '_' with 's'", format, 3, '_s')
+
# ensure that only int and float type specifiers work
for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] +
[chr(x) for x in range(ord('A'), ord('Z')+1)]):