[Python-modules-commits] [html5lib] 01/03: Switch to using py.test for running test cases.

Diane Trout diane at moszumanska.debian.org
Tue Nov 15 19:05:26 UTC 2016


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

diane pushed a commit to branch master
in repository html5lib.

commit fd82c7dd6f7b2522d320c83e5e7ae90a210350c2
Author: Diane Trout <diane at ghic.org>
Date:   Tue Nov 15 10:46:01 2016 -0800

    Switch to using py.test for running test cases.
    
    I found py.test decorators, and the tox configuration
    file used py.test as the test runner.
---
 debian/changelog | 5 +++++
 debian/control   | 2 --
 debian/rules     | 4 ++--
 3 files changed, 7 insertions(+), 4 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index e6cc5bb..babea48 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -12,6 +12,11 @@ html5lib (0.999999999-1) UNRELEASED; urgency=medium
     - Bump Standards-Version with no other changes necessary.
   * d/watch: Use the pypi.debian.net redirector.
 
+  [ Diane Trout ]
+  * Use py.test as the test runner as some tests use py.test
+    decorators.
+  * d/control
+    - Remove from Build-Depends: python{,3}-nose
  -- Barry Warsaw <barry at debian.org>  Tue, 05 Jul 2016 09:25:15 -0400
 
 html5lib (0.999-4) unstable; urgency=medium
diff --git a/debian/control b/debian/control
index c87864f..36f8076 100644
--- a/debian/control
+++ b/debian/control
@@ -8,7 +8,6 @@ Build-Depends: debhelper (>= 8),
                python-all (>= 2.6.6-3~),
                python-flake8,
                python-mock,
-               python-nose,
                python-pytest,
                python-setuptools,
                python-six,
@@ -16,7 +15,6 @@ Build-Depends: debhelper (>= 8),
                python3-all,
                python3-flake8,
                python3-mock,
-               python3-nose,
                python3-pytest,
                python3-setuptools,
                python3-six,
diff --git a/debian/rules b/debian/rules
index cdd7f8c..fe06428 100755
--- a/debian/rules
+++ b/debian/rules
@@ -17,11 +17,11 @@ override_dh_auto_test:
 	# First, Python 2's nosetests
 	PYBUILD_DISABLE_python3=test \
 	PYBUILD_SYSTEM=custom \
-	PYBUILD_TEST_ARGS="nosetests" dh_auto_test --buildsystem=pybuild
+	PYBUILD_TEST_ARGS="py.test" dh_auto_test --buildsystem=pybuild
 	# Then for Python 3 :
 	PYBUILD_DISABLE_python2=test \
 	PYBUILD_SYSTEM=custom \
-	PYBUILD_TEST_ARGS="nosetests3" dh_auto_test --buildsystem=pybuild
+	PYBUILD_TEST_ARGS="py.test-3" dh_auto_test --buildsystem=pybuild
 
 override_dh_installchangelogs:
 	dh_installchangelogs CHANGES.rst

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



More information about the Python-modules-commits mailing list