summaryrefslogtreecommitdiffstats
path: root/Lib/test/test_descr.py
diff options
context:
space:
mode:
authorTim Peters <tim.peters@gmail.com>2001-09-10 23:37:46 (GMT)
committerTim Peters <tim.peters@gmail.com>2001-09-10 23:37:46 (GMT)
commit4c3a0a35cd80a0abb9628dc8d4ade911fe2d5015 (patch)
tree49f95befcf411f7d2dd31df46cd0e67c4353a8e7 /Lib/test/test_descr.py
parentcaaff8d95d750afb4d66b9caece087b191219eb7 (diff)
downloadcpython-4c3a0a35cd80a0abb9628dc8d4ade911fe2d5015.zip
cpython-4c3a0a35cd80a0abb9628dc8d4ade911fe2d5015.tar.gz
cpython-4c3a0a35cd80a0abb9628dc8d4ade911fe2d5015.tar.bz2
More on SF bug [#460020] bug or feature: unicode() and subclasses.
tuple(i) repaired to return a true tuple when i is an instance of a tuple subclass. Added PyTuple_CheckExact macro. PySequence_Tuple(): if a tuple-like object isn't exactly a tuple, it's not safe to return the object as-is -- make a new tuple of it instead.
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 0bed675..d756dc5 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1416,7 +1416,7 @@ def inherits():
verify(v == t)
a = madtuple((1,2,3,4,5))
verify(tuple(a) == (1,2,3,4,5))
- #XXX verify(tuple(a).__class__ is tuple)
+ verify(tuple(a).__class__ is tuple)
a = madtuple(())
verify(tuple(a) == ())
#XXX verify(tuple(a).__class__ is tuple)