Issue #23726: Don't enable GC for user subclasses of non-GC types that don't add any new fields.

Patch by Eugene Toder.
This commit is contained in:
Antoine Pitrou 2015-04-13 20:10:06 +02:00
parent 56452eea39
commit a63cc21234
4 changed files with 27 additions and 5 deletions

View file

@ -3020,8 +3020,6 @@ order (MRO) for bases """
cant(object(), list)
cant(list(), object)
class Int(int): __slots__ = []
cant(2, Int)
cant(Int(), int)
cant(True, int)
cant(2, bool)
o = object()