diff --git a/hypothesis_settings.patch b/hypothesis_settings.patch new file mode 100644 index 0000000..745b677 --- /dev/null +++ b/hypothesis_settings.patch @@ -0,0 +1,15 @@ +--- + tests/test_enumerate.py | 2 +- + 1 file changed, 1 insertion(+), 1 deletion(-) + +--- a/tests/test_enumerate.py ++++ b/tests/test_enumerate.py +@@ -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 diff --git a/python-pyudev.changes b/python-pyudev.changes index 00576b2..d87ae47 100644 --- a/python-pyudev.changes +++ b/python-pyudev.changes @@ -1,3 +1,8 @@ +------------------------------------------------------------------- +Tue Aug 10 12:49:04 UTC 2021 - Matej Cepl + +- Add hypothesis_settings.patch to allow longer timeouts in OBS. + ------------------------------------------------------------------- Sat Dec 12 13:12:21 UTC 2020 - Benjamin Greiner diff --git a/python-pyudev.spec b/python-pyudev.spec index aedbe8d..8e954df 100644 --- a/python-pyudev.spec +++ b/python-pyudev.spec @@ -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-OPENSUS hypothesis_settings.patch bugno mcepl@suse.com +# tests timeout on OBS +Patch2: hypothesis_settings.patch BuildRequires: %{python_module setuptools} BuildRequires: %{python_module six} BuildRequires: fdupes