[Pkg-libvirt-commits] [Git][libvirt-team/osinfo-db][debian/sid] Run autopkgtest with pytest instead of nose

Pino Toscano (@pino) gitlab at salsa.debian.org
Tue Aug 30 22:55:06 BST 2022



Pino Toscano pushed to branch debian/sid at Libvirt Packaging Team / osinfo-db


Commits:
93530e56 by Pino Toscano at 2022-08-30T23:54:34+02:00
Run autopkgtest with pytest instead of nose

nose is deprecated for many years now. pytest can run unittest-based
tests just fine, so use it to run the scripts in debian/tests.
An empty __init__.py is not needed (and thus it is removed), as pytest
discovers the test scripts by filename.

Gbp-Dch: Short
Closes: #1018431

- - - - -


2 changed files:

- − debian/tests/__init__.py
- debian/tests/control


Changes:

=====================================
debian/tests/__init__.py deleted
=====================================


=====================================
debian/tests/control
=====================================
@@ -1,5 +1,5 @@
-Test-Command: cd debian/tests && nosetests3 -vv
-Depends: @, gir1.2-libosinfo-1.0 (>= 1.0.0), python3, python3-nose, python3-gi
+Test-Command: cd debian/tests && pytest -v
+Depends: @, gir1.2-libosinfo-1.0 (>= 1.0.0), python3, python3-pytest, python3-gi
 Restrictions: allow-stderr
 
 Tests: test-installscript



View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db/-/commit/93530e56871ea6af274ffc86a135ff76a2f71265

-- 
View it on GitLab: https://salsa.debian.org/libvirt-team/osinfo-db/-/commit/93530e56871ea6af274ffc86a135ff76a2f71265
You're receiving this email because of your account on salsa.debian.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://alioth-lists.debian.net/pipermail/pkg-libvirt-commits/attachments/20220830/10a29cfc/attachment.htm>


More information about the Pkg-libvirt-commits mailing list