From d6778aebbeb5c205723aa08775ce1026bfaec1b5 Mon Sep 17 00:00:00 2001 From: Mircea Trofin Date: Mon, 28 Jun 2021 02:28:04 -0700 Subject: [PATCH] Deduplicate test function name in python bindings example (#1189) This appears to be the source of unclean termination of the test on some versions of python related to object dereferencing. --- bindings/python/google_benchmark/example.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bindings/python/google_benchmark/example.py b/bindings/python/google_benchmark/example.py index 9134e8cf..487acc9f 100644 --- a/bindings/python/google_benchmark/example.py +++ b/bindings/python/google_benchmark/example.py @@ -102,7 +102,7 @@ def with_options(state): @benchmark.register(name="sum_million_microseconds") @benchmark.option.unit(benchmark.kMicrosecond) -def with_options(state): +def with_options2(state): while state: sum(range(1_000_000))