@@ -358,8 +358,9 @@ def test_formatting(self):
358358 self .assertEqual (u"%r, %r" % (u"abc" , "abc" ), u"u'abc', 'abc'" )
359359 self .assertEqual (u"%(x)s, %(y)s" % {'x' :u"abc" , 'y' :"def" }, u'abc, def' )
360360 self .assertEqual (u"%(x)s, %(\xfc )s" % {'x' :u"abc" , u'\xfc ' :"def" }, u'abc, def' )
361+
361362 self .assertEqual (u'%c' % 0x1234 , u'\u1234 ' )
362- self .assertRaises (ValueError , u'%c' .__mod__ , sys .maxunicode + 1 )
363+ self .assertRaises (ValueError , u"%c" .__mod__ , ( sys .maxunicode + 1 ,) )
363364
364365 # formatting jobs delegated from the string implementation:
365366 self .assertEqual ('...%(foo)s...' % {'foo' :u"abc" }, u'...abc...' )
@@ -379,7 +380,6 @@ def test_formatting(self):
379380 self .assertEqual ('%i%s %*.*s' % (10 , 3 , 5 , 3 , u'abc' ,), u'103 abc' )
380381 self .assertEqual ('%c' % u'a' , u'a' )
381382
382- self .assertRaises (ValueError , u"%c" .__mod__ , (sys .maxunicode + 1 ,))
383383
384384 def test_constructor (self ):
385385 # unicode(obj) tests (this maps to PyObject_Unicode() at C level)
0 commit comments