[Tim Peters]
>> That "should work", provided there aren't differences in whitespace
>> that are invisible to us in this medium. For example, if, in your
>> source file, there's actually a (one or more) trailing space on your
>> line of expected output, then it would _not_ match the actual output.
Tim Peters wrote:
> That "should work", provided there aren't differences in whitespace
> that are invisible to us in this medium. For example, if, in your
> source file, there's actually a (one or more) trailing space on your
> line of expected output, then it would _not_ match the actual output
[Don Taylor]
> I am trying to use Doctest and am having trouble using the ellipsis
> feature when trying to match an object reference.
>
> Here is the code:
>
> def add_change_listener(self, listener):
> '''
>
> Returns list of listeners just for testing.
> >>> def m
Kent Johnson wrote:
> Don Taylor wrote:
>
>>Hi:
>>
>>I am trying to use Doctest and am having trouble using the ellipsis
>>feature when trying to match an object reference.
>
>
> What version of Python are you using? The ELLIPSIS comment was added in
> Python 2.4.
>
I am using 2.4.2
Don.
_
Don Taylor wrote:
> Hi:
>
> I am trying to use Doctest and am having trouble using the ellipsis
> feature when trying to match an object reference.
What version of Python are you using? The ELLIPSIS comment was added in
Python 2.4.
Kent
>
> Here is the code:
>
> def add_change_listener
Hi:
I am trying to use Doctest and am having trouble using the ellipsis
feature when trying to match an object reference.
Here is the code:
def add_change_listener(self, listener):
'''
Returns list of listeners just for testing.
>>> def mock_listener():