[Python-modules-commits] [python-amqp] 10/12: Use new tests

Christopher Stuart Hoskin mans0954 at moszumanska.debian.org
Sun Mar 19 09:29:13 UTC 2017


This is an automated email from the git hooks/post-receive script.

mans0954 pushed a commit to branch debian/experimental
in repository python-amqp.

commit d70f9cad3f5a5b600170e53d8ba04d017e4bd66b
Author: Christopher Hoskin <mans0954 at debian.org>
Date:   Sun Mar 19 08:57:27 2017 +0000

    Use new tests
---
 debian/changelog |  1 +
 debian/rules     | 11 ++---------
 2 files changed, 3 insertions(+), 9 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index fe8b691..a67fa87 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -6,6 +6,7 @@ python-amqp (2.1.4-1) UNRELEASED; urgency=medium
   * Add .cache to debian/clean 
   * Add .egg-info to diff ignore 
   * Update build dependencies 
+  * Use new tests 
 
  -- Christopher Hoskin <mans0954 at debian.org>  Wed, 15 Mar 2017 19:44:51 +0000
 
diff --git a/debian/rules b/debian/rules
index 3d0aa75..83b24ec 100755
--- a/debian/rules
+++ b/debian/rules
@@ -7,6 +7,8 @@ LAST_CHANGE=$(shell dpkg-parsechangelog -S Date)
 BUILD_DATE=$(shell LC_ALL=C date -u "+%B %d, %Y" -d "$(LAST_CHANGE)")
 
 export PYBUILD_NAME=amqp
+export PYBUILD_BEFORE_TEST=cp -r {dir}/t {build_dir}
+export PYBUILD_AFTER_TEST=rm -rf {build_dir}/t
 
 %:
 	dh $@ --with python2,python3,sphinxdoc --buildsystem=pybuild
@@ -22,12 +24,3 @@ override_dh_clean:
 override_dh_installchangelogs:
 	dh_installchangelogs docs/changelog.rst
 
-override_dh_auto_test:
-ifeq (,$(filter nocheck,$(DEB_BUILD_OPTIONS)))
-	set -e; \
-	for python in $(shell pyversions -r) $(shell py3versions -r); do \
-	  PYTHONPATH=. $$python funtests/test_basic_message.py; \
-	  PYTHONPATH=. $$python funtests/test_exceptions.py; \
-	  PYTHONPATH=. $$python funtests/test_serialization.py; \
-	done
-endif

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-amqp.git



More information about the Python-modules-commits mailing list