No subject
Mon May 11 02:30:56 BST 2009
pp self.server._httpd.__dict__<br>
<br>
we get:<br>
<br>
{'RequestHandlerClass': <class bzrlib.tests.test_http.Predefined=
RequestHandler at 0x225dd10>,<br>
=A0'_BaseServer__is_shut_down': <threading._Event object at 0x24=
0dc90>,<br>
=A0'_BaseServer__serving': False,<br>
=A0'_home_dir': u'/home/vila',<br>
=A0'cert_file': u'/usr/lib/python2.6/dist-packages/bzrlib/tests=
/ssl_certs/server.crt',<br>
=A0'key_file': u'/usr/lib/python2.6/dist-packages/bzrlib/tests/=
ssl_certs/server_without_pass.key',<br>
=A0'server_address': ('127.0.0.1', 40231),<br>
=A0'socket': <socket._socketobject object at 0x24132f0>,<br>
=A0'test_case_server': ActivityHTTPSServer(localhost:40231)}<br>
<br>
serving : False ? Huh ?<br>
</blockquote><div><br>I see I must learn to use pdb.=A0 This is a good thin=
g.=A0 Thank you for the coaching.<br></div><div>=A0</div><blockquote class=
=3D"gmail_quote" style=3D"border-left: 1px solid rgb(204, 204, 204); margin=
: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
Ouch, the test server is not running. So of course the client<br>
hangs trying to connect. <br></blockquote><blockquote class=3D"gmail_quote"=
style=3D"border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.=
8ex; padding-left: 1ex;"><br>
cert_file: /usr/lib/python2.6/dist-packages/bzrlib/tests/ssl_certs/server.c=
rt<br>
<br>
I bet that file doesn't exist on your machine right (they don't<br>
on mine at least) ?<br>
</blockquote><div><br>I will check.=A0 I am sure you are correct because I =
have not done anything special to the bzrlib in dist-packages.=A0<br></div>=
<div>=A0</div><blockquote class=3D"gmail_quote" style=3D"border-left: 1px s=
olid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
So what we have here is :<br>
<br>
- a bug in the test server, it shouldn't fail to start<br>
=A0*silently*. And the test setUp should just abort if the server<br>
=A0can't be started.<br>
<br>
- packaging bug, these test can't be run without these files,<br>
=A0they seems to be included in the tarball though, so I suspect<br>
=A0they are lost at installation time,<br>
<br>
Now, if you create copy the content from the ssl_certs directory<br>
from the bzr sources, the tests should pass.</blockquote><div><br>That'=
s exactly what I will do.=A0 I will report back one way or the other. <br><=
/div></div><br>Thanks for the tutorial.=A0 As I said before I am only a cas=
ual python user.=A0 So I'm actually getting a lot of extra learning out=
of this!<br>
<br>-M<br><br>
--0016368e1e76e304d3046d2002c4--
More information about the bazaar
mailing list