Skip to content

Commit 4f1be5c

Browse files
committed
Remove useless and unused result from interruptible_sleep, also called out by
pylint.
1 parent 485f954 commit 4f1be5c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

tests/test_mig_lib_daemon.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -433,7 +433,7 @@ def test_interruptible_sleep_break_not_callable(self):
433433
# Contains both valid and invalid break check items
434434
checks = [lambda: True, "not-callable"]
435435
start = time.time()
436-
result = interruptible_sleep(self.configuration, 0.1, checks)
436+
interruptible_sleep(self.configuration, 0.1, checks)
437437
duration = time.time() - start
438438
# Should complete when valid condition returns True
439439
self.assertTrue(duration < 0.05)
@@ -460,8 +460,7 @@ def test_interruptible_sleep_naps_remaining(self):
460460
"""Test interruptible_sleep counts down remaining naps correctly"""
461461
checks = [lambda: False]
462462
start = time.time()
463-
result = interruptible_sleep(
464-
self.configuration, 0.25, checks, nap_secs=0.1)
463+
interruptible_sleep(self.configuration, 0.25, checks, nap_secs=0.1)
465464
duration = time.time() - start
466465
# 2*0.1=0.2 < 0.25, 3*0.1=0.3 >0.25 -> should do 3rd nap with 0.05 actual sleep
467466
self.assertAlmostEqual(duration, 0.25, delta=0.05)

0 commit comments

Comments
 (0)