fix doctest on py3 with +ELLIPSIS