From 2980c5d9a7d534fd75733ad5192cb1bf020813623536261221912ec3b6b7b186 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tom=C3=A1=C5=A1=20Chv=C3=A1tal?= <tchvatal@suse.com> Date: Fri, 19 Jun 2020 06:33:26 +0000 Subject: [PATCH] Accepting request 815751 from home:jtomasiak:branches:devel:languages:python - make sure UTF8 locale is used when runnning tests * Sometimes functional tests executed in python3 failed if stdout was not set to UTF-8. The error message was: ValueError: underlying buffer has been detached OBS-URL: https://build.opensuse.org/request/show/815751 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-waitress?expand=0&rev=44 --- python-waitress.changes | 8 ++++++++ python-waitress.spec | 3 +++ 2 files changed, 11 insertions(+) diff --git a/python-waitress.changes b/python-waitress.changes index 28f9994..fbc28b7 100644 --- a/python-waitress.changes +++ b/python-waitress.changes @@ -1,3 +1,11 @@ +------------------------------------------------------------------- +Wed Jun 17 08:40:18 UTC 2020 - Jacek Tomasiak <jtomasiak@suse.com> + +- make sure UTF8 locale is used when runnning tests + * Sometimes functional tests executed in python3 failed if stdout was not + set to UTF-8. The error message was: + ValueError: underlying buffer has been detached + ------------------------------------------------------------------- Mon May 18 07:25:32 UTC 2020 - Petr Gajdos <pgajdos@suse.com> diff --git a/python-waitress.spec b/python-waitress.spec index 211e1af..167fa6e 100644 --- a/python-waitress.spec +++ b/python-waitress.spec @@ -75,6 +75,9 @@ python3 setup.py build_sphinx && rm build/sphinx/html/.buildinfo %check # Tests require a network connection rm waitress/tests/test_adjustments.py +# make sure utf8 locale is set or tests could fail with: +# ValueError: underlying buffer has been detached +export LANG=en_US.UTF8 %python_exec setup.py test %post