summaryrefslogtreecommitdiffstatshomepage
path: root/tests/cpydiff/core_class_delnotimpl.py
blob: 18c176e9bb1f74593c5f1bfa736328e0ca4c0f91 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
"""
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()