Commits

Georges Racinet committed a3352df

Masking problem not completely solved by previous commit

  • Participants
  • Parent commits cc64fdd
  • Tags 0.2.1

Comments (0)

Files changed (4)

 
-Version 9.2 (2012-11-22)
-------------------------
+Version 0.2.1 (2012-11-22)
+--------------------------
   
  - Fixed issue with ``datetime.time`` masking
 
    True
    >>> now_t - start_t < 0.01 # 10 ms again
    True
+
+Other constructors are still available (this is a non regression
+test)::
+
+   >>> import datetime
+   >>> datetime.time(3, 57, 0)
+   datetime.time(3, 57)
+   >>> datetime.datetime(2013, 1, 1, 3, 57, 0)
+   datetime(2013, 1, 1, 3, 57)
+   >>> datetime.date(2013, 1, 1)
+   datetime.date(2013, 1, 1)

File anybox/testing/datetime/mock_dt.py

 from datetime import *
 from datetime import datetime as original_datetime
 from time import time as original_time
-import time
 
 class datetime(original_datetime):
 
 from setuptools import setup, find_packages
 
-version = 0.3dev
+version = '0.2.1'
 
 setup(
     name = "anybox.testing.datetime",