__unicode__ method (and not the __str__ method).
Simplify also the testcase.
def test_format_subclass(self):
class U(unicode):
- def __str__(self):
- return '__str__ overridden'
def __unicode__(self):
return u'__unicode__ overridden'
u = U(u'xxx')
Core and Builtins
-----------------
-- Issue #1583863: An unicode subclass can now override the __str__ method
+- Issue #1583863: An unicode subclass can now override the __unicode__ method
- Issue #6474: Make error message from passing an inadequate number of keyword
arguments to a function correct.