Skip to content

Commit 16e109f

Browse files
committed
Steve feedback
1 parent d37666d commit 16e109f

2 files changed

Lines changed: 4 additions & 0 deletions

File tree

test/asynchronous/test_periodic_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

test/test_periodic_executor.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff 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.

0 commit comments

Comments
 (0)