Skip to content

Commit

Permalink
topotato: remove unused TopotatoItem.sleep
Browse files Browse the repository at this point in the history
Dates waaaaaaay back, unused - handled through `.timeline` instead.

Signed-off-by: David Lamparter <[email protected]>
  • Loading branch information
eqvinox committed Sep 17, 2024
1 parent 682934e commit f179685
Showing 1 changed file with 0 additions and 11 deletions.
11 changes: 0 additions & 11 deletions topotato/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -359,17 +359,6 @@ def runtest(self):

self.session.config.hook.pytest_topotato_run(item=self, testfunc=self)

def sleep(self, step=None, until=None):
obj = self
while getattr(obj, "started_ts", None) is None:
obj = obj.parent

abs_until = obj.started_ts + (until or float("inf"))
abs_delay = time.time() + (step or float("inf"))
deadline = min(abs_until, abs_delay)

self.timeline.sleep(deadline - time.time())

def reportinfo(self): # -> Tuple[Union[py.path.local, str], int, str]:
"""
Specialize pytest's location information for this test.
Expand Down

0 comments on commit f179685

Please sign in to comment.