summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-11 01:41:59 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-11 01:41:59 (GMT)
commit5a49ade70e19a76aa252cd596accf79930765f31 (patch)
treeab54e1ff25892e49fbb483ba4e461f30763e1fc6 /Lib/test/test_descr.py
parent8ff70a9606aa2f51f8329fbf09dfbbbae6ab6c11 (diff)
downloadcpython-5a49ade70e19a76aa252cd596accf79930765f31.zip
cpython-5a49ade70e19a76aa252cd596accf79930765f31.tar.gz
cpython-5a49ade70e19a76aa252cd596accf79930765f31.tar.bz2
More on SF bug [#460020] bug or feature: unicode() and subclasses.
Repaired str(i) to return a genuine string when i is an instance of a str subclass. New PyString_CheckExact() macro.
Diffstat (limited to 'Lib/test/test_descr.py')
-rw-r--r--Lib/test/test_descr.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index d756dc5..0de4dec 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1440,7 +1440,7 @@ def inherits():
verify(u == s)
s = madstring("12345")
#XXX verify(str(s) == "12345")
- #XXX verify(str(s).__class__ is str)
+ verify(str(s).__class__ is str)
class madunicode(unicode):
_rev = None