[Python-apps-team] Bug#728083: autopkgtest fails, and does not test installed package

Martin Pitt mpitt at debian.org
Mon Oct 28 09:14:16 UTC 2013


Package: python-memprof
Version: 0.3.2-1

Hello,

python-memprof's autopkgtest currently fails [1]:

| Traceback (most recent call last):
|   File "setup.py", line 19, in <module>
|     from setuptools import setup, Extension
| ImportError: No module named 'setuptools'

When adding that to debian/tests/control, it fails further, as it
wants to build the package first.

Adding a "build-needed" restriction fixes that as it installs
all build dependencies. But this would be wrong: an autopkgtest must
not test the module in the source tree, but the *installed* package,
otherwise it's quite pointless. So I suggest the autopkgtest should
invoke the actual tests directly without the build system, and also
take care that any Python imports don't use the module from the source
tree (as PYTHONPATH implicitly contains ".").

Thanks,

Martin

[1] https://jenkins.qa.ubuntu.com/job/trusty-adt-python-memprof/1
-- 
Martin Pitt                        | http://www.piware.de
Ubuntu Developer (www.ubuntu.com)  | Debian Developer  (www.debian.org)



More information about the Python-apps-team mailing list