pyliblo update - test failed

Jaromír Mikeš mira.mikes at gmail.com
Sun Oct 5 16:14:25 UTC 2014


2014-10-05 16:39 GMT+02:00 Sebastian Ramacher <sramacher at debian.org>:

> On 2014-10-05 13:24:05, Sebastian Ramacher wrote:
> > On 2014-10-05 13:19:24, Jaromír Mikeš wrote:
>
> > > I am just updating pyliblo but test failed:
> > >
> > > ------------
> > > [snip]
> > > PYTHONPATH=$(ls -d /tmp/buildd/pyliblo-0.9.2/build/lib.*-3.4) \
> > >     python3.4 -m unittest discover -s test/ -p '*.py' -v
> > > test_server_thread (unittest.loader.ModuleImportFailure) ... ERROR
> > > testHostPort (unit.AddressTestCase) ... ok
> > > [snip]
> > > .
> > > .
> > > [snip]
> > > testSendAndReceive (unit.ServerThreadTestCase) ... ok
> > >
> > > ======================================================================
> > > ERROR: test_server_thread (unittest.loader.ModuleImportFailure)
> > > ----------------------------------------------------------------------
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python3.4/unittest/case.py", line 58, in
> testPartExecutor
> > >     yield
> > >   File "/usr/lib/python3.4/unittest/case.py", line 577, in run
> > >     testMethod()
> > >   File "/usr/lib/python3.4/unittest/loader.py", line 32, in testFailure
> > >     raise exception
> > > ImportError: Failed to import test module: test_server_thread
> > > Traceback (most recent call last):
> > >   File "/usr/lib/python3.4/unittest/loader.py", line 312, in
> _find_tests
> > >     module = self._get_module_from_name(name)
> > >   File "/usr/lib/python3.4/unittest/loader.py", line 290, in
> > > _get_module_from_name
> > >     __import__(name)
> > >   File "/tmp/buildd/pyliblo-0.9.2/test/test_server_thread.py", line 7
> > >     print "Created Server Thread on Port", st.get_port()
> >
> > Looks like it needs a 2to3 run. I'll take a look.
>
> I've pushed fixes for that. In the process I changed the buildsystem to
> pybuild which gets rid of most of the overrides in debian/rules. There
> are two new patches to run the tests via "pythonX.Y setup.py test" and
> to make test/test_server_thread.py Python 3 compatible. Both patches
> have been forwarded upstream.
>
> Please take a look at it and feel free to revert as needed.


Oh ... many thanks!

Going to upload ;)

regards

mira
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20141005/243cf3bb/attachment-0001.html>


More information about the pkg-multimedia-maintainers mailing list