Re: How to make this doctest work?

2010-05-11 Thread Terry Reedy
On 5/11/2010 5:29 AM, Xie&Tian wrote: Hello I ran across this accidentally and wonders how to make the doctest in following code snippet work: import doctest def a(): """ >>> a = '\\r\\n' >>> print a No matter how many blank lines I add here, it just can't get enough

How to make this doctest work?

2010-05-11 Thread
Hello I ran across this accidentally and wonders how to make the doctest in following code snippet work: import doctest def a(): """ >>> a = '\\r\\n' >>> print a No matter how many blank lines I add here, it just can't get enough -_- """ pass doctest.testmod() ps: