Control: tags -1 + patch
Control: severity -1 serious
Fixed with the attached patch.
* Use pytest explicity in the autopkg tests.
* Make primer.json available in the autopkg tests.
diff -Nru black-20.8b1/debian/tests/control black-20.8b1/debian/tests/control
--- black-20.8b1/debian/tests/control 2020-11-05 06:04:55.000000000 +0100
+++ black-20.8b1/debian/tests/control 2021-02-09 09:59:39.000000000 +0100
@@ -2,5 +2,5 @@
Depends: @, python3, python3-recommonmark, python3-setuptools,
python3-sphinx, python3-docutils,
python3-appdirs, python3-attr, python3-click, python3-toml,
- python3-aiohttp, dpkg-dev
+ python3-aiohttp, dpkg-dev, python3-pytest
Restrictions: allow-stderr, needs-root
diff -Nru black-20.8b1/debian/tests/testsuite black-20.8b1/debian/tests/testsuite
--- black-20.8b1/debian/tests/testsuite 2020-11-05 01:41:39.000000000 +0100
+++ black-20.8b1/debian/tests/testsuite 2021-02-08 18:24:46.000000000 +0100
@@ -6,8 +6,10 @@
VERSION=$(dpkg-parsechangelog|grep ^Version|awk '{print $2}'|cut -d- -f1)
echo "version = '$VERSION'" > _black_version.py
+cp ./src/black_primer/primer.json /usr/lib/python3/dist-packages/black_primer/primer.json
+
if [ "$DEB_HOST_ARCH" == "amd64" ]; then
- PYTHONPATH=/usr/lib/python3/dist-packages/ python3 setup.py test
+ PYTHONPATH=/usr/lib/python3/dist-packages/ python3 -m pytest
else
echo "Skip the test execution on $DEB_HOST_ARCH"
fi