@@ -1816,9 +1816,6 @@ class Runner: # type: ignore[explicit-any]
18161816 trio_token : TrioToken | None = None
18171817 asyncgens : AsyncGenerators = attrs .Factory (AsyncGenerators )
18181818
1819- # If everything goes idle for this long, we call clock._autojump()
1820- clock_autojump_threshold : float = inf
1821-
18221819 # Guest mode stuff
18231820 is_guest : bool = False
18241821 guest_tick_scheduled : bool = False
@@ -2758,8 +2755,8 @@ def unrolled_run(
27582755 # We use 'elif' here because if there are tasks in
27592756 # wait_all_tasks_blocked, then those tasks will wake up without
27602757 # jumping the clock, so we don't need to autojump.
2761- elif runner .clock_autojump_threshold < timeout :
2762- timeout = runner .clock_autojump_threshold
2758+ elif runner .clock . autojump_threshold < timeout :
2759+ timeout = runner .clock . autojump_threshold
27632760 idle_primed = IdlePrimedTypes .AUTOJUMP_CLOCK
27642761
27652762 if "before_io_wait" in runner .instruments :
@@ -2810,8 +2807,7 @@ def unrolled_run(
28102807 break
28112808 else :
28122809 assert idle_primed is IdlePrimedTypes .AUTOJUMP_CLOCK
2813- assert isinstance (runner .clock , _core .MockClock )
2814- runner .clock ._autojump ()
2810+ runner .clock .autojump ()
28152811
28162812 # Process all runnable tasks, but only the ones that are already
28172813 # runnable now. Anything that becomes runnable during this cycle
0 commit comments