Skip to content

Commit 7e5279e

Browse files
committed
typo
1 parent 59cebc9 commit 7e5279e

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

hypothesis-python/tests/conjecture/test_data_tree.py

+3-3
Original file line numberDiff line numberDiff line change
@@ -716,7 +716,7 @@ def test_simulate_non_invalid_conclude_is_unseen_behavior(node, misaligned_node)
716716
def test_simulating_inherits_invalid_forced_status(node, misaligned_node):
717717
assume(misaligned_node.ir_type != node.ir_type)
718718

719-
# we have some logic in DataTree.simulate_test_function to "peak ahead" and
719+
# we have some logic in DataTree.simulate_test_function to "peek ahead" and
720720
# make sure it simulates invalid nodes correctly. But if it does so without
721721
# respecting whether the invalid node was forced or not, and this simulation
722722
# is observed by an observer, this can cause flaky errors later due to a node
@@ -733,13 +733,13 @@ def test_function(ir_nodes):
733733
with pytest.raises(StopTest):
734734
test_function([node, misaligned_node])
735735

736-
# (2) simulate an aligned tree. the datatree peaks ahead here using invalid_at
736+
# (2) simulate an aligned tree. the datatree peeks ahead here using invalid_at
737737
# due to (1).
738738
data = ConjectureData.for_ir_tree([node, node], observer=tree.new_observer())
739739
with pytest.raises(PreviouslyUnseenBehaviour):
740740
tree.simulate_test_function(data)
741741

742742
# (3) run the same aligned tree without simulating. this uses the actual test
743743
# function's draw and forced value. This would flaky error if it did not match
744-
# what the datatree peaked ahead with in (2).
744+
# what the datatree peeked ahead with in (2).
745745
test_function([node, node])

0 commit comments

Comments
 (0)