Kaydet (Commit) 774c931c authored tarafından Fred Drake's avatar Fred Drake

M.-A. Lemburg <mal@lemburg.com>:

Added another test for string formatting (the one that
produced the core dump now fixed in unicodeobject.c).
üst 8b4d01d9
......@@ -263,6 +263,12 @@ assert '...%(foo)s...' % {u'foo':u"abc",'def':123} == u'...abc...'
assert '...%(foo)s...' % {u'foo':u"abc",u'def':123} == u'...abc...'
assert '...%s...%s...%s...%s...' % (1,2,3,u"abc") == u'...1...2...3...abc...'
assert '...%s...' % u"abc" == u'...abc...'
try:
'...%s......' % u"abc"
except ValueError:
pass
else:
raise AssertionError, "'...%s......' % u'abc' failed to raise an exception"
print 'done.'
# Test builtin codecs
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment