<div dir="ltr"><br><div class="gmail_extra"><br><div class="gmail_quote">2014-10-05 16:39 GMT+02:00 Sebastian Ramacher <span dir="ltr"><<a href="mailto:sramacher@debian.org" target="_blank">sramacher@debian.org</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div><div class="h5">
On 2014-10-05 13:24:05, Sebastian Ramacher wrote:<br>
> On 2014-10-05 13:19:24, Jaromír Mikeš wrote:<br>
<br>
> > I am just updating pyliblo but test failed:<br>
> ><br>
> > ------------<br>
> > [snip]<br>
> > PYTHONPATH=$(ls -d /tmp/buildd/pyliblo-0.9.2/build/lib.*-3.4) \<br>
> >     python3.4 -m unittest discover -s test/ -p '*.py' -v<br>
> > test_server_thread (unittest.loader.ModuleImportFailure) ... ERROR<br>
> > testHostPort (unit.AddressTestCase) ... ok<br>
> > [snip]<br>
> > .<br>
> > .<br>
> > [snip]<br>
> > testSendAndReceive (unit.ServerThreadTestCase) ... ok<br>
> ><br>
> > ======================================================================<br>
> > ERROR: test_server_thread (unittest.loader.ModuleImportFailure)<br>
> > ----------------------------------------------------------------------<br>
> > Traceback (most recent call last):<br>
> >   File "/usr/lib/python3.4/unittest/case.py", line 58, in testPartExecutor<br>
> >     yield<br>
> >   File "/usr/lib/python3.4/unittest/case.py", line 577, in run<br>
> >     testMethod()<br>
> >   File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure<br>
> >     raise exception<br>
> > ImportError: Failed to import test module: test_server_thread<br>
> > Traceback (most recent call last):<br>
> >   File "/usr/lib/python3.4/unittest/loader.py", line 312, in _find_tests<br>
> >     module = self._get_module_from_name(name)<br>
> >   File "/usr/lib/python3.4/unittest/loader.py", line 290, in<br>
> > _get_module_from_name<br>
> >     __import__(name)<br>
> >   File "/tmp/buildd/pyliblo-0.9.2/test/test_server_thread.py", line 7<br>
> >     print "Created Server Thread on Port", st.get_port()<br>
><br>
> Looks like it needs a 2to3 run. I'll take a look.<br>
<br>
</div></div>I've pushed fixes for that. In the process I changed the buildsystem to<br>
pybuild which gets rid of most of the overrides in debian/rules. There<br>
are two new patches to run the tests via "pythonX.Y setup.py test" and<br>
to make test/test_server_thread.py Python 3 compatible. Both patches<br>
have been forwarded upstream.<br>
<br>
Please take a look at it and feel free to revert as needed.</blockquote><div><br></div><div>Oh ... many thanks!<br><br></div><div>Going to upload ;)<br><br></div><div>regards<br><br></div><div>mira<br></div><div> </div></div></div></div>