summaryrefslogtreecommitdiff
path: root/tests/internal_bench/class_create-6-getattribute.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/class_create-6-getattribute.py')
-rw-r--r--tests/internal_bench/class_create-6-getattribute.py12
1 files changed, 12 insertions, 0 deletions
diff --git a/tests/internal_bench/class_create-6-getattribute.py b/tests/internal_bench/class_create-6-getattribute.py
new file mode 100644
index 000000000..10a4fe7ce
--- /dev/null
+++ b/tests/internal_bench/class_create-6-getattribute.py
@@ -0,0 +1,12 @@
+import bench
+
+
+def test(num):
+ for i in range(num // 40):
+
+ class X:
+ def __getattribute__(self, name):
+ pass
+
+
+bench.run(test)