tests/mocktime.py
branchstable
changeset 49366 288de6f5d724
parent 48946 642e31cb55f0
equal deleted inserted replaced
49364:e8ea403b1c46 49366:288de6f5d724
     1 from __future__ import absolute_import
       
     2 
       
     3 import os
     1 import os
     4 import time
     2 import time
     5 
     3 
     6 
     4 
     7 class mocktime(object):
     5 class mocktime:
     8     def __init__(self, increment):
     6     def __init__(self, increment):
     9         self.time = 0
     7         self.time = 0
    10         self.increment = [float(s) for s in increment.split()]
     8         self.increment = [float(s) for s in increment.split()]
    11         self.pos = 0
     9         self.pos = 0
    12 
    10