[Python-modules-commits] [pyopenssl] 11/18: use the right py.test tool name to run test for Python 2 and 3; Closes: #857206

Sandro Tosi morph at moszumanska.debian.org
Wed Dec 13 04:58:11 UTC 2017


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

morph pushed a commit to branch master
in repository pyopenssl.

commit b3a251dd596ff8b8c219602dd1b563a7caafc577
Author: Sandro Tosi <morph at debian.org>
Date:   Tue Dec 12 23:27:59 2017 -0500

    use the right py.test tool name to run test for Python 2 and 3; Closes: #857206
---
 debian/changelog | 5 ++++-
 debian/rules     | 8 ++++++--
 2 files changed, 10 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index 9d1725e..4dd6205 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -7,8 +7,11 @@ pyopenssl (17.5.0-1) UNRELEASED; urgency=medium
     - updated homepage
   * debian/copyright
     - extend packaging copyright years
+  * debian/rules
+    - use the right py.test tool name to run test for Python 2 and 3;
+      Closes: #857206
 
- -- Sandro Tosi <morph at debian.org>  Tue, 12 Dec 2017 23:16:05 -0500
+ -- Sandro Tosi <morph at debian.org>  Tue, 12 Dec 2017 23:26:58 -0500
 
 pyopenssl (16.2.0-1) unstable; urgency=medium
 
diff --git a/debian/rules b/debian/rules
index 54c1d9c..70e7f4a 100755
--- a/debian/rules
+++ b/debian/rules
@@ -21,9 +21,13 @@ override_dh_auto_build:
 override_dh_auto_test:
 ifeq ($(filter nocheck,$(DEB_BUILD_OPTIONS)),)
 	# run tests
-	-for py in $(PYVERS); do  \
+	-for py in $(PY2VERS); do  \
 	    LIB=$$(python$$py -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_purelib)") ; \
-	    PYTHONPATH=$$LIB py.test-$$py ;\
+	    PYTHONPATH=$$LIB py.test ;\
+	done
+	-for py in $(PY3VERS); do  \
+	    LIB=$$(python$$py -c "from distutils.command.build import build ; from distutils.core import Distribution ; b = build(Distribution()) ; b.finalize_options() ; print(b.build_purelib)") ; \
+	    PYTHONPATH=$$LIB py.test-3 ;\
 	done
 endif
      

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



More information about the Python-modules-commits mailing list