[Python-modules-team] Bug#860035: autopkgtests fail: debian/tests/unittests: py.test-2.7: not found

Iain Lane laney at debian.org
Mon Apr 10 14:15:12 UTC 2017


Package: txzmq
Version: 0.7.4-1
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu zesty ubuntu-patch

Hi,

As of pytest 3.0.0-1:-

 pytest (3.0.0-1) experimental; urgency=medium

   pytest dropped all versioned py.test-X.Y entrypoints. If you need to run a
   test suite with a specific Python version, please use `pythonX.Y -m pytest`
   instead.

  -- Sebastian Ramacher <sramacher at debian.org>  Sun, 21 Aug 2016 19:24:52 +0200

You need to call pytest differently. The tests fail like-

 autopkgtest [11:16:12]: test unittests: - - - - - - - - - - results - - - - - - - - - -
 unittests FAIL non-zero exit status 127
 autopkgtest [11:16:12]: test unittests: - - - - - - - - - - stderr - - - - - - - - - -

See:

  https://objectstorage.prodstack4-5.canonical.com/v1/AUTH_77e2ada1e7a84929a74ba3b87153c0ac/autopkgtest-zesty-ci-train-ppa-service-2712/zesty/i386/t/txzmq/20170410_111623_34013@/log.gz

There's a diff for this attached.

Cheers,

-- 
Iain Lane                                  [ iain at orangesquash.org.uk ]
Debian Developer                                   [ laney at debian.org ]
Ubuntu Developer                                   [ laney at ubuntu.com ]
-------------- next part --------------
diff -Nru txzmq-0.7.4/debian/tests/unittests txzmq-0.7.4/debian/tests/unittests
--- txzmq-0.7.4/debian/tests/unittests	2016-05-20 18:52:29.000000000 +0100
+++ txzmq-0.7.4/debian/tests/unittests	2017-04-10 13:04:28.000000000 +0100
@@ -3,5 +3,5 @@
 export PYTHONWARNINGS=d
 cd "$ADTTMP"
 for version in $(pyversions -iv); do
-    py.test-$version --pyargs txzmq;
+    python${version} -m pytest --pyargs txzmq;
 done


More information about the Python-modules-team mailing list