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


class D:
    def __get__(self, instance, owner=None):
        pass


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

        class X:
            x = descriptor


bench.run(test)