summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_instance-3.1-del-gc.py
blob: 311c71c3571b00b8a72f364c77ac417e7502017e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
import bench
import gc


class X:
    def __del__(self):
        pass


def test(num):
    for i in range(num // 5):
        x = X()
    gc.collect()


bench.run(test)