@@ -170,7 +170,7 @@ def test_can_precisely_shrink_values(typ, strat, require_truthy):
170170 cond = bool
171171 else :
172172 cond = lambda x : True
173- result , shrunk = precisely_shrink (strat , is_interesting = cond )
173+ _result , shrunk = precisely_shrink (strat , is_interesting = cond )
174174 assert shrunk == find (strat , cond )
175175
176176
@@ -191,7 +191,7 @@ def test_can_precisely_shrink_alternatives(i, j, a, seed):
191191 types = [u for u , _ in a ]
192192 combined_strategy = st .one_of (* [v for _ , v in a ])
193193
194- result , value = precisely_shrink (
194+ _result , value = precisely_shrink (
195195 combined_strategy ,
196196 initial_condition = lambda x : isinstance (x , types [j ]),
197197 is_interesting = lambda x : not any (isinstance (x , types [k ]) for k in range (i )),
@@ -213,7 +213,7 @@ def test_precise_shrink_with_blocker(a, seed):
213213 types = [u for u , _ in a ]
214214 combined_strategy = st .one_of (* [v for _ , v in a ])
215215
216- result , value = precisely_shrink (
216+ _result , value = precisely_shrink (
217217 combined_strategy ,
218218 initial_condition = lambda x : isinstance (x , types [2 ]),
219219 is_interesting = lambda x : True ,
@@ -300,7 +300,7 @@ def test_function(data):
300300def test_always_shrinks_to_none (a , seed , block_falsey , allow_sloppy ):
301301 combined_strategy = st .one_of (st .none (), * a )
302302
303- result , value = find_random (combined_strategy , lambda x : x is not None )
303+ result , _value = find_random (combined_strategy , lambda x : x is not None )
304304 shrunk_values = shrinks (
305305 combined_strategy , result .nodes , allow_sloppy = allow_sloppy , seed = seed
306306 )
@@ -317,11 +317,11 @@ def test_can_shrink_to_every_smaller_alternative(i, alts, seed, force_small):
317317 strats = [s for _ , s in alts ]
318318 combined_strategy = st .one_of (* strats )
319319 if force_small :
320- result , value = precisely_shrink (
320+ result , _value = precisely_shrink (
321321 combined_strategy , is_interesting = lambda x : type (x ) is types [i ], seed = seed
322322 )
323323 else :
324- result , value = find_random (
324+ result , _value = find_random (
325325 combined_strategy , lambda x : type (x ) is types [i ], seed = seed
326326 )
327327
0 commit comments