From cc2d5b28a0d9990fec0729cfd13d35d9e20c1974 Mon Sep 17 00:00:00 2001 From: Reagan Date: Sun, 18 Aug 2024 18:12:47 -0700 Subject: [PATCH] bad checkout --- hypothesis-python/src/hypothesis/stateful.py | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/hypothesis-python/src/hypothesis/stateful.py b/hypothesis-python/src/hypothesis/stateful.py index cb0bc7c4e1..5a514e3c4b 100644 --- a/hypothesis-python/src/hypothesis/stateful.py +++ b/hypothesis-python/src/hypothesis/stateful.py @@ -198,7 +198,16 @@ def output(s): for k, v in list(data.items()): if isinstance(v, VarReference): data[k] = machine.names_to_values[v.name] + elif isinstance(v, list) and all( + isinstance(item, VarReference) for item in v + ): + + + + data[k] = [machine.names_to_values[item.name] for item in v] + + label = f"execute:rule:{rule.function.__name__}" start = perf_counter() start_gc = gc_cumulative_time() @@ -538,7 +547,8 @@ def do_draw(self, data): out = machine.names_to_values[reference.name] if self.consume: bundle.remove(reference) # pragma: no cover # coverage is flaky here - return out + # return out + return reference def __repr__(self): consume = self.consume # __reference_strategy.consume