summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_create-2.1-classattr5.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/class_create-2.1-classattr5.py')
-rw-r--r--tests/internal_bench/class_create-2.1-classattr5.py15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/internal_bench/class_create-2.1-classattr5.py b/tests/internal_bench/class_create-2.1-classattr5.py
new file mode 100644
index 000000000..5051e7dcc
--- /dev/null
+++ b/tests/internal_bench/class_create-2.1-classattr5.py
@@ -0,0 +1,15 @@
+import bench
+
+
+def test(num):
+ for i in range(num // 40):
+
+ class X:
+ a = 0
+ b = 0
+ c = 0
+ d = 0
+ x = 1
+
+
+bench.run(test)