mocker doesn't seem to work with utcnow
Bug #332489 reported by
John O'Brien
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
Mocker |
Won't Fix
|
Undecided
|
Gustavo Niemeyer |
Bug Description
Based on the documentation, it seems that this should work. However it does not.
In [4]: obj = mymocker.
In [5]: obj()
Out[5]: <mocker.Mock object at 0x2558c90>
In [6]: mymocker.
In [7]: mymocker.replay()
In [8]: from datetime import datetime
In [9]: datetime.utcnow()
Out[9]: datetime.
To post a comment you must log in.
datetime is implemented in C, so this won't work indeed.