summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_create-8-metaclass_setname.py
blob: e4515b54279d10f3d9cef8b5d78861e67d5b2ab3 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
import bench


class D:
    def __set_name__(self, owner, name):
        pass


def test(num):
    descriptor = D()
    for i in range(num // 40):

        class X:
            x = descriptor


bench.run(test)