Commits

Georges Racinet committed 7e7af89

Fixing datetime.time class masking w/ older version of time.time() patch

Comments (0)

Files changed (2)

 
-Version 9.2 (unreleased):
+Version 9.2 (2012-11-22)
+------------------------
   
- *
+ - Fixed issue with ``datetime.time`` masking
 
-Version 0.1 (2012-07-15): initial version
+Version 0.1 (2012-07-15)
+------------------------
+ - initial version

anybox/testing/datetime/mock_dt.py

         of 'now'.
         """
         cls.set_now(None)
-
-def time():
-    if datetime._current_now is None:
-        return original_time()
-    now = datetime.now()
-    return time.mktime(now.timetuple) + now.microsecond / 1000000
-
-time.time = time
-