forked from pool/python-pyudev
Accepting request 911336 from devel:languages:python
- Add hypothesis_settings.patch to allow longer timeouts in OBS. OBS-URL: https://build.opensuse.org/request/show/911336 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/python-pyudev?expand=0&rev=24
This commit is contained in:
commit
fffc96d2c0
24
hypothesis_settings.patch
Normal file
24
hypothesis_settings.patch
Normal file
@ -0,0 +1,24 @@
|
||||
---
|
||||
tests/test_enumerate.py | 4 ++--
|
||||
1 file changed, 2 insertions(+), 2 deletions(-)
|
||||
|
||||
--- a/tests/test_enumerate.py
|
||||
+++ b/tests/test_enumerate.py
|
||||
@@ -90,7 +90,7 @@ class TestEnumerator(object):
|
||||
|
||||
@failed_health_check_wrapper
|
||||
@given(_CONTEXT_STRATEGY, _SUBSYSTEM_STRATEGY)
|
||||
- @settings(max_examples=10)
|
||||
+ @settings(max_examples=10, deadline=None)
|
||||
def test_match_subsystem(self, context, subsystem):
|
||||
"""
|
||||
Subsystem match matches devices w/ correct subsystem.
|
||||
@@ -126,7 +126,7 @@ class TestEnumerator(object):
|
||||
|
||||
@failed_health_check_wrapper
|
||||
@given(_CONTEXT_STRATEGY, _SUBSYSTEM_STRATEGY)
|
||||
- @settings(max_examples=1)
|
||||
+ @settings(max_examples=1, deadline=500)
|
||||
def test_match_subsystem_nomatch_complete(self, context, subsystem):
|
||||
"""
|
||||
Test that w/ respect to the universe of devices returned by
|
@ -1,3 +1,8 @@
|
||||
-------------------------------------------------------------------
|
||||
Tue Aug 10 12:49:04 UTC 2021 - Matej Cepl <mcepl@suse.com>
|
||||
|
||||
- Add hypothesis_settings.patch to allow longer timeouts in OBS.
|
||||
|
||||
-------------------------------------------------------------------
|
||||
Sat Dec 12 13:12:21 UTC 2020 - Benjamin Greiner <code@bnavigator.de>
|
||||
|
||||
|
@ -1,7 +1,7 @@
|
||||
#
|
||||
# spec file for package python-pyudev
|
||||
#
|
||||
# Copyright (c) 2020 SUSE LLC
|
||||
# Copyright (c) 2021 SUSE LLC
|
||||
#
|
||||
# All modifications and additions to the file contributed by third parties
|
||||
# remain the property of their copyright owners, unless otherwise agreed
|
||||
@ -30,6 +30,9 @@ Source0: https://files.pythonhosted.org/packages/source/p/pyudev/pyudev-%
|
||||
Patch0: pytest_register_mark.patch
|
||||
# PATCH-FEATURE_UPSTREAM remove_mock.patch gh#pyudev/pyudev#409
|
||||
Patch1: remove_mock.patch
|
||||
# PATCH-FIX-OPENSUSE hypothesis_settings.patch mcepl@suse.com
|
||||
# tests timeout on OBS
|
||||
Patch2: hypothesis_settings.patch
|
||||
BuildRequires: %{python_module setuptools}
|
||||
BuildRequires: %{python_module six}
|
||||
BuildRequires: fdupes
|
||||
|
Loading…
Reference in New Issue
Block a user