[Python-modules-commits] [python-agate] 01/06: Force use of UTF-8 locale when running the tests
Ghislain Vaillant
ghisvail-guest at moszumanska.debian.org
Fri May 26 10:35:34 UTC 2017
This is an automated email from the git hooks/post-receive script.
ghisvail-guest pushed a commit to branch master
in repository python-agate.
commit 46549a584bd2a46383fab897425bda7299bb38e9
Author: Ghislain Antony Vaillant <ghisvail at gmail.com>
Date: Fri Mar 31 21:32:51 2017 +0100
Force use of UTF-8 locale when running the tests
---
debian/rules | 15 +++++++--------
debian/tests/control | 2 +-
2 files changed, 8 insertions(+), 9 deletions(-)
diff --git a/debian/rules b/debian/rules
index 0820084..875f630 100755
--- a/debian/rules
+++ b/debian/rules
@@ -4,14 +4,8 @@
#export DH_VERBOSE = 1
export PYBUILD_NAME = agate
-# Testing is temporarily disabled due to a bug upstream, see
-# <https://github.com/wireservice/agate/issues/677>.
-#ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
-export PYBUILD_DISABLE = test
-#else
-#export PYBUILD_BEFORE_TEST = cp -r {dir}/examples {build_dir}
-#export PYBUILD_AFTER_TEST = rm -rf {build_dir}/examples
-#endif
+export PYBUILD_BEFORE_TEST = cp -r {dir}/examples {build_dir}
+export PYBUILD_AFTER_TEST = rm -rf {build_dir}/examples
%:
dh $@ --with python3,sphinxdoc --buildsystem=pybuild
@@ -23,3 +17,8 @@ override_dh_auto_build:
ifeq (,$(findstring nodoc,$(DEB_BUILD_PROFILES)))
PYTHONPATH=. sphinx-build -N -b html docs build/html
endif
+
+override_dh_auto_test:
+ifneq (,$(findstring nocheck,$(DEB_BUILD_PROFILES)))
+ LC_ALL=C.UTF-8 dh_auto_test
+endif
diff --git a/debian/tests/control b/debian/tests/control
index 2fe0154..9621d56 100644
--- a/debian/tests/control
+++ b/debian/tests/control
@@ -3,7 +3,7 @@ Test-Command: set -e
; for py in $(py3versions -r 2>/dev/null)
; do cd "$AUTOPKGTEST_TMP"
; echo "Testing with $py:"
- ; $py -m pytest -v
+ ; LC_ALL=C.UTF-8 $py -m pytest -v
; done
Depends: python3-agate,
python3-all,
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/python-modules/packages/python-agate.git
More information about the Python-modules-commits
mailing list