"Mailing List" writes:
> Was including a input check on a function argument which is expecting a
> datetime.date. When running unittest no exception was raised when a
> datetime.datetime instance was used as argument. Some playing with the
> console lead to this:
>
import datetime
>
dt1
On Sat, Oct 2, 2010 at 5:12 AM, Mailing List wrote:
> Was including a input check on a function argument which is expecting a
> datetime.date. When running unittest no exception was raised when a
> datetime.datetime instance was used as argument. Some playing with the
> console lead to this:
>
>>>
Was including a input check on a function argument which is expecting a
datetime.date. When running unittest no exception was raised when a
datetime.datetime instance was used as argument. Some playing with the
console lead to this:
>>> import datetime
>>> dt1 = datetime.datetime(2010, 10, 2)
>>>