testing sftp under windows
Alexey Shamrin
shamrin at gmail.com
Mon Nov 14 10:33:44 GMT 2005
On 14/11/05, Alexey Shamrin <shamrin at gmail.com> wrote:
> > I changed the listen port to 0 so it can grab any port it wants, in
> > case 5555 is in use.
> Oh, good! I didn't know I can pass 0 as a port number...
> > Also I didn't like that we had to call get_transport() to make the
> > test clean up correctly, so I tried having stop() (called from
> > tearDown()) ensure that the socket is closed. I think the reason
> > this doesn't show up on posix is that posix sockets are closed in
> > their __del__ methods.
> This didn't help... After invoking a first empty test (that was
> test_delete), all other tests stopped calling tearDown method of
> TestCaseWithSFTPServer. I don't know the reason of this behaviour...
Oops... I forgot to mention that I tried this part of a fix (calling
stop() from tearDown()) without changing port 55555 to 0. Of course if
I set port to 0 it doesn't matter if socket is properly closed. Though
it will be nice if it is closed, but not necessary.
--
Alexey
More information about the bazaar
mailing list