Simple Doc Test failing without any reason [Help Needed]
Gerard Flanagan
grflanagan at gmail.com
Wed May 28 08:11:55 EDT 2008
On May 28, 1:48 pm, afrobeard <afrobe... at gmail.com> wrote:
> The following following code fails with the failiure:-
>
> File "test.py", line 27, in __main__.sanitize_number
> Failed example:
> sanitize_number('0321-4683113')
> Expected:
> '03214683113'
> Got:
> '03214683113'
>
> Expected and Got looks the same. The value should verify. What am I
> doing wrong here ?
>
> Thanks in advance. I really appreciate your time.
>
> P.S. I tested this Python2.5 installed on both Ubuntu Hardy Heron and
> Windows XP
Your code works for me (Python 2.5 WinXP).
Are you mixing tabs and spaces?
G.
More information about the Python-list
mailing list