summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/core_class_delnotimpl.py
blob: 6fac764ac982864a135eb0d3c97d150a52317fdd (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
"""
categories: Core,Classes
description: Special method __del__ not implemented for user-defined classes
cause: Unknown
workaround: Unknown
"""

import gc


class Foo:
    def __del__(self):
        print("__del__")


f = Foo()
del f

gc.collect()