Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 12:58 AM -0400 7/31/06, Tony Nelson wrote: >At 12:39 AM -0400 7/31/06, Tony Nelson wrote: > >>popen('"E:\Documents and Settings\Tony Nelson\My >>Documents\Python\pydev\trunk\PCBuild\python.exe" -c "import >>sys;sys.version_info"') > >Ehh, I must admit that I retyped that. Obviously what I t

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 12:39 AM -0400 7/31/06, Tony Nelson wrote: >popen('"E:\Documents and Settings\Tony Nelson\My >Documents\Python\pydev\trunk\PCBuild\python.exe" -c "import >sys;sys.version_info"') Ehh, I must admit that I retyped that. Obviously what I typed would not work, but what I used was: python

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 4:34 AM +0200 7/31/06, Martin v. Löwis wrote: >Tony Nelson schrieb: >>Hmm. Well, it would make the test possible on MSWindows as well as on >>OS's implementing alarm(2). If I figure out how to build Python on >>MSWindows, I might give it a try. I tried to get MSVC 7.1 via the .Net >>SDK, but i

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Martin v. Löwis
Tony Nelson schrieb: > Hmm. Well, it would make the test possible on MSWindows as well as on OS's > implementing alarm(2). If I figure out how to build Python on MSWindows, I > might give it a try. I tried to get MSVC 7.1 via the .Net SDK, but it > installed VS 8 instead, so I'm not quite sure h

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 7:23 PM -0400 7/30/06, Tony Nelson wrote: ... >...I tried to get MSVC 7.1 via the .Net SDK, but it >installed VS 8 instead, so I'm not quite sure how to proceed. ... David Murmann suggested off-list that I'd probably installed the 2.0 .Net SDK, and that I should install the 1.1 .Net SDK, whic

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 11:42 PM +0200 7/30/06, Martin v. Löwis wrote: >Tony Nelson schrieb: >>> You can use GenerateConsoleCtrlEvent to send Ctrl-C to all processes >>> that share the console of the calling process. >[...] >> Martin, your advice is usually spot-on, but I don't always understand it. >> Maybe using it h

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Martin v. Löwis
Tony Nelson schrieb: >> You can use GenerateConsoleCtrlEvent to send Ctrl-C to all processes >> that share the console of the calling process. [...] > Martin, your advice is usually spot-on, but I don't always understand it. > Maybe using it here is just complicated. This was really just in resp

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Jean-Paul Calderone
On Sun, 30 Jul 2006 09:50:36 -0700, Josiah Carlson <[EMAIL PROTECTED]> wrote: > >Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: >> >> On Sat, 29 Jul 2006 14:38:38 -0700, Josiah Carlson <[EMAIL PROTECTED]> wrote: >> > >> >If someone is looking for a project for 2.6 that digs into all sorts of >> >pl

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Tony Nelson
At 9:42 AM +0200 7/30/06, Martin v. Löwis wrote: >Tony Nelson schrieb: >> Hmm, OK, darn, thanks. MSWindows does allow users to press Ctl-C to send a >> KeyboardInterrupt, so it's just too bad if I can't find a way to test it >> from a script. > >You can use GenerateConsoleCtrlEvent to send Ctrl-C

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Josiah Carlson
Jean-Paul Calderone <[EMAIL PROTECTED]> wrote: > > On Sat, 29 Jul 2006 14:38:38 -0700, Josiah Carlson <[EMAIL PROTECTED]> wrote: > > > >If someone is looking for a project for 2.6 that digs into all sorts of > >platform-specific nastiness, they could add actual signal sending to the > >signal mod

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-30 Thread Martin v. Löwis
Tony Nelson schrieb: > Hmm, OK, darn, thanks. MSWindows does allow users to press Ctl-C to send a > KeyboardInterrupt, so it's just too bad if I can't find a way to test it > from a script. You can use GenerateConsoleCtrlEvent to send Ctrl-C to all processes that share the console of the calling

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-29 Thread Tony Nelson
At 2:38 PM -0700 7/29/06, Josiah Carlson wrote: >Tony Nelson <[EMAIL PROTECTED]> wrote: >> >> I'm trying to write a test for my Socket Timeouts patch [1], which fixes >> signal handling (notably Ctl-C == SIGINT == KeyboarInterrupt) on socket >> operations using a timeout. I don't see a portable wa

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-29 Thread Jean-Paul Calderone
On Sat, 29 Jul 2006 14:38:38 -0700, Josiah Carlson <[EMAIL PROTECTED]> wrote: > >If someone is looking for a project for 2.6 that digs into all sorts of >platform-specific nastiness, they could add actual signal sending to the >signal module (at least for unix systems). > Maybe I am missing someth

Re: [Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-29 Thread Josiah Carlson
Tony Nelson <[EMAIL PROTECTED]> wrote: > > I'm trying to write a test for my Socket Timeouts patch [1], which fixes > signal handling (notably Ctl-C == SIGINT == KeyboarInterrupt) on socket > operations using a timeout. I don't see a portable way to send a signal, > and asking the test runner to

[Python-Dev] Testing Socket Timeouts patch 1519025

2006-07-29 Thread Tony Nelson
I'm trying to write a test for my Socket Timeouts patch [1], which fixes signal handling (notably Ctl-C == SIGINT == KeyboarInterrupt) on socket operations using a timeout. I don't see a portable way to send a signal, and asking the test runner to press Ctl-C is a non-starter. A "real" signal is