Accepting request 639323 from devel:languages:python

- Call the tests the same way as upstream to avoid import cycles

- Do make sure to error out on test failure.

OBS-URL: https://build.opensuse.org/request/show/639323
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websockets?expand=0&rev=5
This commit is contained in:
Dominique Leuenberger 2018-10-02 17:47:27 +00:00 committed by Git OBS Bridge
commit 7c3dbc1e7c
2 changed files with 12 additions and 4 deletions

View File

@ -1,3 +1,13 @@
-------------------------------------------------------------------
Mon Oct 1 07:22:29 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Call the tests the same way as upstream to avoid import cycles
-------------------------------------------------------------------
Mon Sep 24 07:35:18 UTC 2018 - Tomáš Chvátal <tchvatal@suse.com>
- Do make sure to error out on test failure.
-------------------------------------------------------------------
Wed Aug 29 11:41:58 UTC 2018 - tchvatal@suse.com

View File

@ -12,7 +12,7 @@
# license that conforms to the Open Source Definition (Version 1.9)
# published by the Open Source Initiative.
# Please submit bugfixes or comments via http://bugs.opensuse.org/
# Please submit bugfixes or comments via https://bugs.opensuse.org/
#
@ -55,10 +55,8 @@ export CFLAGS="%{optflags}"
%check
# Test execution speed depends on BS load and architecture, relax
# With 6.0 release tests got very racy, retest when updating
# https://github.com/aaugustin/websockets/issues/415
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5
%python_exec setup.py test || :
%python_exec -m unittest
%files %{python_files}
%license LICENSE