Message1510

Author pekka.klarck
Recipients
Date 2007-02-28.22:58:08
SpamBayes Score
Marked as misclassified
Message-id
In-reply-to
Content
After figuring out that the affected method in this case is __mod__ fixing the problem was pretty easy. The patch is available at http://jython.org/patches/1671304 and it includes following test added to Lib/test/test_str2unicode.py.

def test_string_formatting(self):
    self.assertEquals(unicode, type('%s' % u'x'))
    self.assertEquals(unicode, type('%s %s' % (u'x', 'y')))

(I also replaced few tabs with spaces in Lib/test/test_str2unicode.py. Hope that's ok. If not, I won't touch them in the future.)
History
Date User Action Args
2008-02-20 17:17:45adminlinkissue1671134 messages
2008-02-20 17:17:45admincreate