No subject


Mon May 11 02:30:56 BST 2009


pp self.server._httpd.__dict__<br>
<br>
we get:<br>
<br>
{&#39;RequestHandlerClass&#39;: &lt;class bzrlib.tests.test_http.Predefined=
RequestHandler at 0x225dd10&gt;,<br>
=A0&#39;_BaseServer__is_shut_down&#39;: &lt;threading._Event object at 0x24=
0dc90&gt;,<br>
=A0&#39;_BaseServer__serving&#39;: False,<br>
=A0&#39;_home_dir&#39;: u&#39;/home/vila&#39;,<br>
=A0&#39;cert_file&#39;: u&#39;/usr/lib/python2.6/dist-packages/bzrlib/tests=
/ssl_certs/server.crt&#39;,<br>
=A0&#39;key_file&#39;: u&#39;/usr/lib/python2.6/dist-packages/bzrlib/tests/=
ssl_certs/server_without_pass.key&#39;,<br>
=A0&#39;server_address&#39;: (&#39;127.0.0.1&#39;, 40231),<br>
=A0&#39;socket&#39;: &lt;socket._socketobject object at 0x24132f0&gt;,<br>
=A0&#39;test_case_server&#39;: 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&#39;t exist on your machine right (they don&#39;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&#39;t fail to start<br>
 =A0*silently*. And the test setUp should just abort if the server<br>
 =A0can&#39;t be started.<br>
<br>
- packaging bug, these test can&#39;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&#39;=
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&#39;m actually getting a lot of extra learning out=
 of this!<br>
<br>-M<br><br>

--0016368e1e76e304d3046d2002c4--



More information about the bazaar mailing list