[Python-modules-team] Bug#943454: python-jellyfish: autopkgtest fails if more than one supported python version
Steve Langasek
steve.langasek at canonical.com
Fri Oct 25 00:18:19 BST 2019
Package: python-jellyfish
Version: 0.6.1-1
Severity: important
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu focal ubuntu-patch
Hi Diego,
The python-jellyfish autopkgtest is failing in Ubuntu now that python3.8 has
been added to the list of supported pythons there. The reason is that the
autopkgtest simply isn't safe in the face of multiple python versions and
fails with:
[...]
cp: 'testdata' and '/tmp/autopkgtest.jUi2oO/autopkgtest_tmp/testdata' are the same file
[...]
(http://autopkgtest.ubuntu.com/packages/p/python-jellyfish/focal/amd64)
The attached patch takes care of separating the setup from the
per-python-version test run, so that it doesn't fail trying to copy the
testdata to itself.
Cheers,
--
Steve Langasek Give me a lever long enough and a Free OS
Debian Developer to set it on, and I can move the world.
Ubuntu Developer https://www.debian.org/
slangasek at ubuntu.com vorlon at debian.org
-------------- next part --------------
diff -Nru python-jellyfish-0.6.1/debian/tests/py3 python-jellyfish-0.6.1/debian/tests/py3
--- python-jellyfish-0.6.1/debian/tests/py3 2019-07-23 11:25:54.000000000 -0700
+++ python-jellyfish-0.6.1/debian/tests/py3 2019-10-24 16:12:27.000000000 -0700
@@ -2,9 +2,9 @@
set -e
+cp -r testdata "$AUTOPKGTEST_TMP"
+cd "$AUTOPKGTEST_TMP"
for py in $(py3versions -r 2>/dev/null) ; do
- cp -r testdata "$AUTOPKGTEST_TMP"
- cd "$AUTOPKGTEST_TMP"
echo "Testing with $py:"
$py -m pytest --pyargs jellyfish.test
done
More information about the Python-modules-team
mailing list