- Skip tests that actually can poll network
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-aiorpcX?expand=0&rev=8
This commit is contained in:
committed by
Git OBS Bridge
parent
160a746d5b
commit
ea1508475c
@@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jul 31 09:51:42 UTC 2019 - Tomáš Chvátal <tchvatal@suse.com>
|
||||
|
||||
- Skip tests that actually can poll network
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Fri Jun 7 14:34:18 UTC 2019 - Marketa Calabkova <mcalabkova@suse.com>
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ Generic async RPC implementation, including JSON-RPC
|
||||
|
||||
%prep
|
||||
%setup -q -n aiorpcX-%{version}
|
||||
# needs network
|
||||
rm tests/test_websocket.py
|
||||
|
||||
%build
|
||||
%python_build
|
||||
@@ -58,7 +60,7 @@ Generic async RPC implementation, including JSON-RPC
|
||||
%check
|
||||
# the two disabled tests below need network
|
||||
# test_slow_connection_aborted - randomly fails, out of 10 runs 6 fails
|
||||
%python_expand PYTHONPATH=%{buildroot}%{$python_sitelib} py.test-%{$python_bin_suffix} -k 'not (test_auto_detect_address_failure or test_create_connection_resolve_good or test_slow_connection_aborted)'
|
||||
%pytest -k 'not (test_auto_detect_address_failure or test_create_connection_resolve_good or test_slow_connection_aborted)'
|
||||
|
||||
%files %{python_files}
|
||||
%doc README.rst
|
||||
|
||||
Reference in New Issue
Block a user