summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_create-1-slots.py
blob: 9b3e4b9570da2c390febb47868f7b332e218c5ff (plain)
1
2
3
4
5
6
7
8
9
10
11
12
import bench


def test(num):
    l = ["x"]
    for i in range(num // 40):

        class X:
            __slots__ = l


bench.run(test)