Skip to content

Commit f9de0d2

Browse files
committed
only set invalid_at when required
1 parent bc097f1 commit f9de0d2

File tree

1 file changed

+2
-1
lines changed
  • hypothesis-python/src/hypothesis/internal/conjecture

1 file changed

+2
-1
lines changed

hypothesis-python/src/hypothesis/internal/conjecture/datatree.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -1018,7 +1018,8 @@ def draw_boolean(
10181018
self.draw_value("boolean", value, was_forced=was_forced, kwargs=kwargs)
10191019

10201020
def mark_invalid(self, invalid_at: InvalidAt) -> None:
1021-
self.__current_node.invalid_at = invalid_at
1021+
if self.__current_node.transition is None:
1022+
self.__current_node.invalid_at = invalid_at
10221023

10231024
def draw_value(
10241025
self,

0 commit comments

Comments
 (0)