Author benjamin.peterson
Recipients benjamin.peterson, georg.brandl, jackdied
Date 2009-04-07.19:18:56
SpamBayes Score 3.16384e-07
Marked as misclassified No
Message-id <1afaf6160904071218k47248ba5wc42b89421e2f6ebb@mail.gmail.com>
In-reply-to <1239129009.22.0.612935776956.issue5696@psf.upfronthosting.co.za>
Content
2009/4/7 Jack Diederich <report@bugs.python.org>:
>
> Jack Diederich <jackdied@gmail.com> added the comment:
>
> Could you try increasing self.blocking_timeout (in the _setUp function)
> to something greater than 0.0 (like 0.1) and see if that works?  I
> picked a constant that was as small as Worked For Me to keep the total
> test time as short as possible.

Nope, still have the same problem.

>
> Unfortunately select() is called in the guts of Telnet so slipping in a
> mock object is difficult.  I could also add more synchronization
> primitives but that is also icky.  Hopefully just upping the constant a
> little does the trick.

You could monkey patch select.select() during the tests or rewrite
telnetlib, so it calls self._select() and make a subclass.
History
Date User Action Args
2009-04-07 19:18:58benjamin.petersonsetrecipients: + benjamin.peterson, georg.brandl, jackdied
2009-04-07 19:18:56benjamin.petersonlinkissue5696 messages
2009-04-07 19:18:56benjamin.petersoncreate