Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code | Sign in
(277)

Unified Diff: Lib/test/test_types.py

Issue 8931: '#' has no affect with 'c' type
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Please Sign in to add in-line comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | Python/formatter_unicode.c » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
--- a/Lib/test/test_types.py Sat Dec 10 21:25:04 2011 +0100
+++ b/Lib/test/test_types.py Sat Dec 10 22:20:23 2011 +0100
@@ -340,6 +340,8 @@
self.assertRaises(ValueError, 3 .__format__, ",n")
# can't have ',' with 'c'
self.assertRaises(ValueError, 3 .__format__, ",c")
+ # can't have '#' with 'c'
+ self.assertRaises(ValueError, 3 .__format__, "#c")
# ensure that only int and float type specifiers work
for format_spec in ([chr(x) for x in range(ord('a'), ord('z')+1)] +
« no previous file with comments | « no previous file | Python/formatter_unicode.c » ('j') | no next file with comments »

RSS Feeds Recent Issues | This issue
This is Rietveld 894c83f36cb7+