pyliblo update - test failed

Sebastian Ramacher sramacher at debian.org
Sun Oct 5 14:39:20 UTC 2014


Hi Jaromir

On 2014-10-05 13:24:05, Sebastian Ramacher wrote:
> On 2014-10-05 13:19:24, Jaromír Mikeš wrote:
> > Hello Sebastian,
> > 
> > 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.

Cheers
-- 
Sebastian Ramacher
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-multimedia-maintainers/attachments/20141005/9fc63328/attachment-0001.sig>


More information about the pkg-multimedia-maintainers mailing list