Accepting request 944483 from home:bnavigator:branches:devel:languages:python
- skip test_log due to flaky socket handling inside obs environments OBS-URL: https://build.opensuse.org/request/show/944483 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyzmq?expand=0&rev=100
This commit is contained in:
parent
d8af7e98df
commit
cf75b87f4b
27
less-flaky.patch
Normal file
27
less-flaky.patch
Normal file
@ -0,0 +1,27 @@
|
||||
---
|
||||
zmq/tests/test_poll.py | 2 +-
|
||||
zmq/tests/test_retry_eintr.py | 2 +-
|
||||
2 files changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/zmq/tests/test_poll.py
|
||||
+++ b/zmq/tests/test_poll.py
|
||||
@@ -192,7 +192,7 @@ class TestSelect(PollZMQTestCase):
|
||||
self.assertTrue(s1 not in rlist)
|
||||
self.assertTrue(s2 not in rlist)
|
||||
|
||||
- @mark.flaky(reruns=3)
|
||||
+ @mark.flaky()
|
||||
def test_timeout(self):
|
||||
"""make sure select timeout has the right units (seconds)."""
|
||||
s1, s2 = self.create_bound_pair(zmq.PAIR, zmq.PAIR)
|
||||
--- a/zmq/tests/test_retry_eintr.py
|
||||
+++ b/zmq/tests/test_retry_eintr.py
|
||||
@@ -60,7 +60,7 @@ class TestEINTRSysCall(BaseZMQTestCase):
|
||||
self.assertRaises(zmq.Again, push.send, b('buf'))
|
||||
assert self.timer_fired
|
||||
|
||||
- @mark.flaky(reruns=3)
|
||||
+ @mark.flaky()
|
||||
def test_retry_poll(self):
|
||||
x, y = self.create_bound_pair()
|
||||
poller = zmq.Poller()
|
@ -1,3 +1,25 @@
|
||||
-------------------------------------------------------------------
|
||||
Wed Jan 5 23:03:59 UTC 2022 - Ben Greiner <code@bnavigator.de>
|
||||
|
||||
- skip test_log due to flaky socket handling inside obs
|
||||
environments
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Oct 13 13:26:41 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Update to 22.3.0:
|
||||
- Fix strlcpy compilation issues on alpine, freebsd. Adds new
|
||||
build-time dependency on packaging.
|
||||
- In event-loop integration: warn instead of raise when
|
||||
triggering callback on a socket whose context has been
|
||||
closed.
|
||||
- Bundled libzmq in wheels backport a patch to avoid crashes
|
||||
due to inappropriate closing of libsodium's random generator
|
||||
when using CurveZMQ.
|
||||
- New ResourceWarnings when contexts and sockets are closed by
|
||||
garbage collection, which can be a source of hangs and leaks
|
||||
(matches open files)
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Wed Aug 11 10:15:01 UTC 2021 - Markéta Machová <mmachova@suse.com>
|
||||
|
||||
|
@ -25,13 +25,16 @@
|
||||
%bcond_with tests
|
||||
%endif
|
||||
Name: python-pyzmq
|
||||
Version: 22.2.1
|
||||
Version: 22.3.0
|
||||
Release: 0
|
||||
Summary: Python bindings for 0MQ
|
||||
License: BSD-3-Clause AND LGPL-3.0-or-later
|
||||
URL: https://github.com/zeromq/pyzmq
|
||||
Source: https://files.pythonhosted.org/packages/source/p/pyzmq/pyzmq-%{version}.tar.gz
|
||||
Source1: python-pyzmq-rpmlintrc
|
||||
# PATCH-FIX-UPSTREAM less-flaky.patch bsc#[0-9]+ mcepl@suse.com
|
||||
# Make test suite less flaky
|
||||
Patch0: less-flaky.patch
|
||||
BuildRequires: %{python_module Cython}
|
||||
BuildRequires: %{python_module devel >= 3.6}
|
||||
BuildRequires: %{python_module setuptools}
|
||||
@ -40,7 +43,9 @@ BuildRequires: python-rpm-macros
|
||||
BuildRequires: zeromq-devel
|
||||
# SECTION Test requirements
|
||||
BuildRequires: %{python_module gevent}
|
||||
BuildRequires: %{python_module flaky}
|
||||
BuildRequires: %{python_module paramiko}
|
||||
BuildRequires: %{python_module pytest-rerunfailures}
|
||||
BuildRequires: %{python_module pytest-timeout}
|
||||
BuildRequires: %{python_module pytest}
|
||||
BuildRequires: %{python_module simplejson}
|
||||
@ -106,13 +111,15 @@ export LANG=en_US.UTF-8
|
||||
# This test wants to build a custom cython extension, but does
|
||||
# not have the source files installed into the buildroot
|
||||
SKIPPED_TESTS+=" or test_cython"
|
||||
# unreliable socket handling in obs environment
|
||||
SKIPPED_TESTS+=" or test_log"
|
||||
%if 0%{?suse_version} < 1550
|
||||
# tries to open a network connection on older distributions
|
||||
SKIPPED_TESTS+=" or test_null"
|
||||
%endif
|
||||
mkdir cleantest
|
||||
pushd cleantest
|
||||
%pytest_arch --pyargs zmq -k "not (${SKIPPED_TESTS:4})" --timeout 120 -ra
|
||||
%pytest_arch --pyargs zmq -k "not (${SKIPPED_TESTS:4})" --timeout 1200
|
||||
popd
|
||||
%endif
|
||||
|
||||
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:6d18c76676771fd891ca8e0e68da0bbfb88e30129835c0ade748016adb3b6242
|
||||
size 1243088
|
3
pyzmq-22.3.0.tar.gz
Normal file
3
pyzmq-22.3.0.tar.gz
Normal file
@ -0,0 +1,3 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:8eddc033e716f8c91c6a2112f0a8ebc5e00532b4a6ae1eb0ccc48e027f9c671c
|
||||
size 1243520
|
Loading…
Reference in New Issue
Block a user