From fd8459f5021e17d06c7fad33fa982f1b05edcd2d Mon Sep 17 00:00:00 2001 From: Thomas Goirand Date: Mon, 28 Dec 2015 09:17:32 +0000 Subject: [PATCH] Using python$$i -m pytest instead of py.test-$$i when running unit tests. --- debian/changelog | 6 ++++++ debian/rules | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/debian/changelog b/debian/changelog index 352929e..14bdf58 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +python-csscompressor (0.9.4-2) unstable; urgency=medium + + * Using python$$i -m pytest instead of py.test-$$i when running unit tests. + + -- Thomas Goirand Mon, 28 Dec 2015 09:16:56 +0000 + python-csscompressor (0.9.4-1) unstable; urgency=medium * Initial release. (Closes: #808764) diff --git a/debian/rules b/debian/rules index 189b256..af1e28f 100755 --- a/debian/rules +++ b/debian/rules @@ -26,7 +26,7 @@ ifeq (,$(findstring nocheck, $(DEB_BUILD_OPTIONS))) set -e ; set -x ; for i in 2.7 $(PYTHON3S) ; do \ PYMAJOR=`echo $$i | cut -d'.' -f1` ; \ echo "===> Testing with python$$i (python$$PYMAJOR)" ; \ - py.test-$$i csscompressor/tests ; \ + python$$i -m pytest csscompressor/tests ; \ done endif