Re: [Pyunit-interest] PyUnit hangs when I do the following absurdly complicated thing
Brought to you by:
purcell
From: Pat M. <jp...@cs...> - 2004-06-30 20:35:08
|
Steve, Your diagnosis was correct. I tried a few different things to fix it. I looked for a way to increase the default buffer size, but didn't find one. As a stop-gap, I swapped the stdout and stderr reads. That worked, which showed me this was the right diagnosis. I ended up spawning a thread to write the stderr output to a string buffer while the main thread wrote the stdout output to the console. When that got EOF, I did a join and then copied the string buffer to the console. That keeps the two streams separate. Thanks much for looking at my problem and for giving me such a quick solution. Pat On Wednesday, June 30, 2004, at 06:05 AM, Steve Purcell wrote: > Pat, > > Without trying it out for myself, I'm pretty sure your problem lies in > the > 'displayOuts ' static method, and the fact that you are trying to read > the > child process' stdout fully before moving on to reading its stderr. > <snip> |