diff options
author | Marc-André Lemburg <mal@egenix.com> | 2000-06-08 17:50:55 (GMT) |
---|---|---|
committer | Marc-André Lemburg <mal@egenix.com> | 2000-06-08 17:50:55 (GMT) |
commit | 59a044b7d2c831e4e6f002808096318c741dec19 (patch) | |
tree | 64e864b5fba8158ac92cfbee1ff7be0425228cae /Lib/test | |
parent | 2348114ba839977fc831ce786e89ab1c6780fe4c (diff) | |
download | cpython-59a044b7d2c831e4e6f002808096318c741dec19.zip cpython-59a044b7d2c831e4e6f002808096318c741dec19.tar.gz cpython-59a044b7d2c831e4e6f002808096318c741dec19.tar.bz2 |
Marc-Andre Lemburg <mal@lemburg.com>:
Updated to the fix in %c formatting: it now always checks for
a one character argument.
Diffstat (limited to 'Lib/test')
-rw-r--r-- | Lib/test/test_unicode.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_unicode.py b/Lib/test/test_unicode.py index fa50f81..15d87d6 100644 --- a/Lib/test/test_unicode.py +++ b/Lib/test/test_unicode.py @@ -247,8 +247,8 @@ assert u"%s, %s, %i, %f, %5.2f" % (u"abc", "abc", 1, -2, 3) == u'abc, abc, 1, -2 assert u"%s, %s, %i, %f, %5.2f" % (u"abc", "abc", -1, -2, 3.5) == u'abc, abc, -1, -2.000000, 3.50' assert u"%s, %s, %i, %f, %5.2f" % (u"abc", "abc", -1, -2, 3.57) == u'abc, abc, -1, -2.000000, 3.57' assert u"%s, %s, %i, %f, %5.2f" % (u"abc", "abc", -1, -2, 1003.57) == u'abc, abc, -1, -2.000000, 1003.57' -assert u"%c" % (u"abc",) == u'a' -assert u"%c" % ("abc",) == u'a' +assert u"%c" % (u"a",) == u'a' +assert u"%c" % ("a",) == u'a' assert u"%c" % (34,) == u'"' assert u"%c" % (36,) == u'$' assert u"%r, %r" % (u"abc", "abc") == u"u'abc', 'abc'" |