[PKG-Openstack-devel] Bug#890499: python-weakrefmethod: Use setup.py test to execute unit tests
James Page
james.page at ubuntu.com
Thu Feb 15 11:07:44 UTC 2018
Package: python-weakrefmethod
Version: 1.0.3-2
Severity: normal
Tags: patch
User: ubuntu-devel at lists.ubuntu.com
Usertags: origin-ubuntu bionic ubuntu-patch
Dear Maintainer,
In Ubuntu, the attached patch was applied to achieve the following:
* d/rules: Use setup.py test to run unit tests.
The existing approach of using python to directly execute the test_*
file was not actually executing any of the unit tests.
Thanks for considering the patch.
-- System Information:
Debian Release: buster/sid
APT prefers bionic
APT policy: (500, 'bionic')
Architecture: amd64 (x86_64)
Foreign Architectures: i386
Kernel: Linux 4.13.0-32-generic (SMP w/4 CPU cores)
Locale: LANG=en_GB.UTF-8, LC_CTYPE=en_GB.UTF-8 (charmap=UTF-8), LANGUAGE=en_GB:en (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled
-------------- next part --------------
diff -Nru python-weakrefmethod-1.0.3/debian/rules python-weakrefmethod-1.0.3/debian/rules
--- python-weakrefmethod-1.0.3/debian/rules 2017-11-01 22:55:04.000000000 +0000
+++ python-weakrefmethod-1.0.3/debian/rules 2018-02-15 11:03:17.000000000 +0000
@@ -12,7 +12,7 @@
override_dh_auto_test:
ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS)))
- python test_weakmethod.py
+ python setup.py test
endif
override_dh_clean:
More information about the Openstack-devel
mailing list