The endless 460020 bug.
Disable t[:], t*0, t*1 optimizations when t is of a tuple subclass type.
diff --git a/Lib/test/test_descr.py b/Lib/test/test_descr.py
index 7095f0b..5c4db30 100644
--- a/Lib/test/test_descr.py
+++ b/Lib/test/test_descr.py
@@ -1417,9 +1417,18 @@
a = madtuple((1,2,3,4,5))
verify(tuple(a) == (1,2,3,4,5))
verify(tuple(a).__class__ is tuple)
+ verify(a[:].__class__ is tuple)
+ verify((a * 1).__class__ is tuple)
+ verify((a * 0).__class__ is tuple)
+ verify((a + ()).__class__ is tuple)
a = madtuple(())
verify(tuple(a) == ())
verify(tuple(a).__class__ is tuple)
+ verify((a + a).__class__ is tuple)
+ verify((a * 0).__class__ is tuple)
+ verify((a * 1).__class__ is tuple)
+ verify((a * 2).__class__ is tuple)
+ verify(a[:].__class__ is tuple)
class madstring(str):
_rev = None