Re: [Tutor] puzzling EOFError when mocking raw_input in doctest

2008-08-10 Thread Kent Johnson
On Sun, Aug 10, 2008 at 4:03 PM, <[EMAIL PROTECTED]> wrote: > > Hi all, > > I've continued playing about with mocking raw_input in doctests in light of > Kent's reply. > > I've hit an odd thing---if my substitute for raw_input returns '', I get an > EOFError. The code below shows the problem. It a

[Tutor] puzzling EOFError when mocking raw_input in doctest

2008-08-10 Thread broek
Hi all, I've continued playing about with mocking raw_input in doctests in light of Kent's reply. I've hit an odd thing---if my substitute for raw_input returns '', I get an EOFError. The code below shows the problem. It arises equally if myrawalt is used in the doctest in place of myraw