Accepting request 911402 from devel:languages:python
- Increase WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 10 to make test_keepalive_ping_with_no_ping_timeout pass again. - Remove skip-test_keepalive_ping_with_no_ping_timeout.patch, of course. - Use %pyunittest macro instead of doing it on our own. - Add skip-test_keepalive_ping_with_no_ping_timeout.patch for gh#aaugustin/websockets#1026. OBS-URL: https://build.opensuse.org/request/show/911402 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-websockets?expand=0&rev=13
This commit is contained in:
commit
8bac15f579
@ -1,3 +1,17 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 11 09:17:13 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Increase WEBSOCKETS_TESTS_TIMEOUT_FACTOR to 10 to make
|
||||
test_keepalive_ping_with_no_ping_timeout pass again.
|
||||
- Remove skip-test_keepalive_ping_with_no_ping_timeout.patch, of course.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 10 07:18:14 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Use %pyunittest macro instead of doing it on our own.
|
||||
- Add skip-test_keepalive_ping_with_no_ping_timeout.patch for
|
||||
gh#aaugustin/websockets#1026.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sun Jun 6 12:00:22 UTC 2021 - Dirk Müller <dmueller@suse.com>
|
||||
|
||||
|
@ -27,6 +27,7 @@ Group: Development/Languages/Python
|
||||
URL: https://github.com/aaugustin/websockets
|
||||
Source: https://github.com/aaugustin/websockets/archive/%{version}.tar.gz
|
||||
BuildRequires: %{python_module devel}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: fdupes
|
||||
BuildRequires: python-rpm-macros
|
||||
@ -42,7 +43,7 @@ it provides an API based on coroutines, making it easy to write highly
|
||||
concurrent applications.
|
||||
|
||||
%prep
|
||||
%setup -q -n websockets-%{version}
|
||||
%autosetup -p1 -n websockets-%{version}
|
||||
|
||||
%build
|
||||
export CFLAGS="%{optflags}"
|
||||
@ -54,10 +55,10 @@ export CFLAGS="%{optflags}"
|
||||
|
||||
%check
|
||||
# Test execution speed depends on BS load and architecture, relax
|
||||
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=5
|
||||
export WEBSOCKETS_TESTS_TIMEOUT_FACTOR=10
|
||||
# https://github.com/aaugustin/websockets/issues/855 is an intermittent failure
|
||||
# for test_keepalive_ping_does_not_crash_when_connection_lost on s390x
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitearch} $python -m unittest
|
||||
%pyunittest_arch -v
|
||||
|
||||
%files %{python_files}
|
||||
%license LICENSE
|
||||
|
Loading…
Reference in New Issue
Block a user