[pypy-issue] [issue1187] call to isinstance(...) in __sub__(self, other) in lib_pypy/datetime.py draws error in test

Amaury Forgeot d Arc tracker at bugs.pypy.org
Wed Jun 20 17:17:12 CEST 2012


Amaury Forgeot d Arc <amauryfa at gmail.com> added the comment:

well, datetime.datetime is replaced by a Mock() object which is not a type, so 
instance(other, datetime) fails.
I don't know why they did this. Tests pass just as well if datetime is not mocked 
out.

________________________________________
PyPy bug tracker <tracker at bugs.pypy.org>
<https://bugs.pypy.org/issue1187>
________________________________________


More information about the pypy-issue mailing list