diff options
author | Tim Peters <tim.peters@gmail.com> | 2001-09-11 03:07:38 (GMT) |
---|---|---|
committer | Tim Peters <tim.peters@gmail.com> | 2001-09-11 03:07:38 (GMT) |
commit | 78e0fc74bce026ddf67d029030a90c9b8faffcb5 (patch) | |
tree | d66ea7c58d2630b08bf81f04e3d636a15b75314a /Lib/test/test_descr.py | |
parent | 0ebeb584a496fec7a09bd62cb20ceb15cabde4e7 (diff) | |
download | cpython-78e0fc74bce026ddf67d029030a90c9b8faffcb5.zip cpython-78e0fc74bce026ddf67d029030a90c9b8faffcb5.tar.gz cpython-78e0fc74bce026ddf67d029030a90c9b8faffcb5.tar.bz2 |
Possibly the end of SF [#460020] bug or feature: unicode() and subclasses.
Changed unicode(i) to return a true Unicode object when i is an instance of
a unicode subclass. Added PyUnicode_CheckExact macro.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r-- | Lib/test/test_descr.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py index fea3255..a2ec475 100644 --- a/Lib/test/test_descr.py +++ b/Lib/test/test_descr.py @@ -1443,7 +1443,7 @@ def inherits(): verify(str(s).__class__ is str) s = madstring("\x00" * 5) - #XXX verify(str(s) == "\x00" ( 5) + #XXX verify(str(s) == "\x00" * 5) verify(str(s).__class__ is str) class madunicode(unicode): @@ -1460,7 +1460,7 @@ def inherits(): verify(u.rev().rev() == madunicode(u"ABCDEF")) u = madunicode(u"12345") verify(unicode(u) == u"12345") - #XXX verify(unicode(u).__class__ is unicode) + verify(unicode(u).__class__ is unicode) def all(): lists() |