danse/doctest_utils — Issue #1: add int conversion
Author: danse
Created: 2012-01-18 09:33:19+00:00
State: open

many functions may want to convert an object to int

print_mock.__trunc__
print_mock.__trunc__()
print_mock.__trunc__().__int__
print_mock.__trunc__().__int__()
Traceback (most recent call last):
...
TypeError: __trunc__ returned non-Integral (type PrintMock)