Message85736
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. |
|
| Date |
User |
Action |
Args |
| 2009-04-07 19:18:58 | benjamin.peterson | set | recipients:
+ benjamin.peterson, georg.brandl, jackdied |
| 2009-04-07 19:18:56 | benjamin.peterson | link | issue5696 messages |
| 2009-04-07 19:18:56 | benjamin.peterson | create | |
|