[Python-modules-commits] [sparqlwrapper] 08/11: Run tests with python3 too (Closes: #761186)

chrysn chrysn-guest at moszumanska.debian.org
Wed Nov 16 11:11:32 UTC 2016


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

chrysn-guest pushed a commit to branch master
in repository sparqlwrapper.

commit e743efd6b96eaf3c753e4159e429f1aae2c16d3c
Author: chrysn <chrysn at fsfe.org>
Date:   Tue Nov 8 15:43:18 2016 +0100

    Run tests with python3 too (Closes: #761186)
    
    Original patch from Ubuntu / Matthias Klose <doko at ubuntu.com>
---
 debian/rules | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/debian/rules b/debian/rules
index 155a202..efc3c52 100755
--- a/debian/rules
+++ b/debian/rules
@@ -19,3 +19,10 @@ override_dh_auto_test:
 	PYBUILD_SYSTEM=custom \
 	PYBUILD_TEST_ARGS="cd {build_dir} && nosetests" \
 	dh_auto_test --buildsystem=pybuild
+
+	PYBUILD_BEFORE_TEST_python3='cp -r {dir}/test {build_dir}; 2to3 -w {build_dir}/test' \
+	PYBUILD_AFTER_TEST='rm -rf {build_dir}/test' \
+	PYBUILD_DISABLE_python2=test \
+	PYBUILD_SYSTEM=custom \
+	PYBUILD_TEST_ARGS="cd {build_dir} && nosetests3" \
+	dh_auto_test --buildsystem=pybuild

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



More information about the Python-modules-commits mailing list