@@ -108,10 +108,10 @@ async def uncached_func(x):
108108]
109109
110110all_funcs = [* funcs_no_ttl , * funcs_ttl ]
111- ids = [* no_ttl_ids , * ttl_ids ]
111+ all_ids = [* no_ttl_ids , * ttl_ids ]
112112
113113
114- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
114+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
115115def test_cache_hit_benchmark (
116116 benchmark : BenchmarkFixture ,
117117 run_loop : Callable [..., Any ],
@@ -130,7 +130,7 @@ async def run() -> None:
130130 benchmark (run_loop , run )
131131
132132
133- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
133+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
134134def test_cache_miss_benchmark (
135135 benchmark : BenchmarkFixture ,
136136 run_loop : Callable [..., Any ],
@@ -146,7 +146,7 @@ async def run() -> None:
146146 benchmark (run_loop , run )
147147
148148
149- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
149+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
150150def test_cache_clear_benchmark (
151151 benchmark : BenchmarkFixture ,
152152 run_loop : Callable [..., Any ],
@@ -158,7 +158,7 @@ def test_cache_clear_benchmark(
158158 benchmark (func .cache_clear )
159159
160160
161- @pytest .mark .parametrize ("func_ttl" , funcs_ttl , ids = ids [ - 4 :] )
161+ @pytest .mark .parametrize ("func_ttl" , funcs_ttl , ids = ttl_ids )
162162def test_cache_ttl_expiry_benchmark (
163163 benchmark : BenchmarkFixture ,
164164 run_loop : Callable [..., Any ],
@@ -170,7 +170,7 @@ def test_cache_ttl_expiry_benchmark(
170170 benchmark (run_loop , func_ttl , 99 )
171171
172172
173- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
173+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
174174def test_cache_invalidate_benchmark (
175175 benchmark : BenchmarkFixture ,
176176 run_loop : Callable [..., Any ],
@@ -189,7 +189,7 @@ def run() -> None:
189189 invalidate (i )
190190
191191
192- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
192+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
193193def test_cache_info_benchmark (
194194 benchmark : BenchmarkFixture ,
195195 run_loop : Callable [..., Any ],
@@ -208,7 +208,7 @@ def run() -> None:
208208 cache_info ()
209209
210210
211- @pytest .mark .parametrize ("func" , all_funcs , ids = ids )
211+ @pytest .mark .parametrize ("func" , all_funcs , ids = all_ids )
212212def test_concurrent_cache_hit_benchmark (
213213 benchmark : BenchmarkFixture ,
214214 run_loop : Callable [..., Any ],
0 commit comments