forked from pool/python-waitress
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
This commit is contained in:
parent
5458ad9d6d
commit
2980c5d9a7
@ -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>
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user