summaryrefslogtreecommitdiff
path: root/tests/internal_bench/var-7-instance-meth.py
diff options
context:
space:
mode:
Diffstat (limited to 'tests/internal_bench/var-7-instance-meth.py')
-rw-r--r--tests/internal_bench/var-7-instance-meth.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/tests/internal_bench/var-7-instance-meth.py b/tests/internal_bench/var-7-instance-meth.py
index f9d463f40..2ed7800be 100644
--- a/tests/internal_bench/var-7-instance-meth.py
+++ b/tests/internal_bench/var-7-instance-meth.py
@@ -1,17 +1,19 @@
import bench
-class Foo:
+class Foo:
def __init__(self):
self._num = 20000000
def num(self):
return self._num
+
def test(num):
o = Foo()
i = 0
while i < o.num():
i += 1
+
bench.run(test)