Skip to content
This repository has been archived by the owner on Aug 3, 2023. It is now read-only.

Commit

Permalink
Flag manual start_time constructor argument as no cover
Browse files Browse the repository at this point in the history
This argument is never used but is just present for completeness (as to not
confuse future readers...)
  • Loading branch information
mossblaser committed Jul 18, 2016
1 parent 8c401b3 commit 438b187
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions spalloc_server/controller.py
Original file line number Diff line number Diff line change
Expand Up @@ -1223,8 +1223,8 @@ def __init__(self, id, owner,

self.owner = owner

if start_time is not None:
self.start_time = start_time
if start_time is not None: # pragma: no branch
self.start_time = start_time # pragma: no cover
else:
now = datetime.now(utc)
epoch = datetime(1970, 1, 1, tzinfo=utc)
Expand Down

0 comments on commit 438b187

Please sign in to comment.