monkey patching time.time() in python

Posted by user84584 on Stack Overflow See other posts from Stack Overflow or by user84584
Published on 2010-03-15T12:22:39Z Indexed on 2010/03/15 12:29 UTC
Read the original article Hit count: 590

Filed under:
|
|
|
|

Hello guys, I've an application where, for testing, I need to replace the time.time() call with a specific timestamp, I've done that in the past using ruby

(code available here: http://github.com/zemariamm/Back-to-Future/blob/master/back_to_future.rb )

However I do not know how to do this using Python.

Any hints ? Cheers, Ze Maria

© Stack Overflow or respective owner

Related posts about python

Related posts about monkeypatching