Skip to content

Commit

Permalink
Remove superfluous list comprehension.
Browse files Browse the repository at this point in the history
  • Loading branch information
jaraco committed Feb 19, 2024
1 parent 6ffcc1c commit b82c5b5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions tests/test_schedule.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,7 @@ def test_delayed_command_order():
delayed commands should be sorted by delay time
"""
delays = [random.randint(0, 99) for x in range(5)]
cmds = sorted([
schedule.DelayedCommand.after(delay, do_nothing) for delay in delays
])
cmds = sorted(schedule.DelayedCommand.after(delay, do_nothing) for delay in delays)
assert [c.delay.seconds for c in cmds] == sorted(delays)


Expand Down

0 comments on commit b82c5b5

Please sign in to comment.