Bug#854670: diffoscope: autopkgtest failures

Iain Lane iain at orangesquash.org.uk
Thu Feb 9 17:45:35 UTC 2017


On Thu, Feb 09, 2017 at 11:52:50AM +0100, Mattia Rizzolo wrote:
> E   ImportError: No module named 'debian'

Hmm, looks like skip_unless_module_exists() needs to catch the
exception. Patch attached - I don't like the "skip" variable, so if you
know of a nicer way (the function needs to return a callable so you
can't use mark.skip AFAICS) then please do it.

The way I read the docs is that it should return None here; not sure why
it doesn't - bug in python?

BTW, maybe it would be nice if the 'debian' tests were run in
autopkgtest; add a test-dep on python3-debian?

Cheers,

-- 
Iain Lane                                  [ iain at orangesquash.org.uk ]
Debian Developer                                   [ laney at debian.org ]
Ubuntu Developer                                   [ laney at ubuntu.com ]
-------------- next part --------------
A non-text attachment was scrubbed...
Name: 0001-tests-Catch-ImportError-when-looking-to-see-if-a-mod.patch
Type: text/x-diff
Size: 1078 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170209/9b420940/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 801 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/reproducible-builds/attachments/20170209/9b420940/attachment.sig>


More information about the Reproducible-builds mailing list