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