File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ async def test_skip_sleep_flag_skips_interval(self):
7373 call_times = []
7474
7575 async def target ():
76+ nonlocal call_times
7677 call_times .append (time .monotonic ())
7778 if len (call_times ) >= 2 :
7879 return False
@@ -114,6 +115,7 @@ async def test_update_interval_changes_next_wait(self):
114115 call_times = []
115116
116117 async def target ():
118+ nonlocal call_times
117119 call_times .append (time .monotonic ())
118120 if len (call_times ) == 1 :
119121 # Shorten the interval from 30s so the next run happens promptly.
Original file line number Diff line number Diff line change @@ -73,6 +73,7 @@ def test_skip_sleep_flag_skips_interval(self):
7373 call_times = []
7474
7575 def target ():
76+ nonlocal call_times
7677 call_times .append (time .monotonic ())
7778 if len (call_times ) >= 2 :
7879 return False
@@ -114,6 +115,7 @@ def test_update_interval_changes_next_wait(self):
114115 call_times = []
115116
116117 def target ():
118+ nonlocal call_times
117119 call_times .append (time .monotonic ())
118120 if len (call_times ) == 1 :
119121 # Shorten the interval from 30s so the next run happens promptly.
You can’t perform that action at this time.
0 commit comments