From 2830b6e63e1664a2ad37e8dda8113c36ae2366e963d26887f3227b856812b7f3 Mon Sep 17 00:00:00 2001 From: Matej Cepl Date: Mon, 17 Jan 2022 06:50:42 +0000 Subject: [PATCH] Update hypothesis_settings.patch OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-pyudev?expand=0&rev=47 --- hypothesis_settings.patch | 22 ++++++++++++++++++++-- 1 file changed, 20 insertions(+), 2 deletions(-) diff --git a/hypothesis_settings.patch b/hypothesis_settings.patch index 34c4bdc..8eddfbe 100644 --- a/hypothesis_settings.patch +++ b/hypothesis_settings.patch @@ -1,6 +1,6 @@ --- - tests/test_enumerate.py | 6 +++--- - 1 file changed, 3 insertions(+), 3 deletions(-) + tests/test_enumerate.py | 10 +++++----- + 1 file changed, 5 insertions(+), 5 deletions(-) --- a/tests/test_enumerate.py +++ b/tests/test_enumerate.py @@ -22,6 +22,15 @@ def test_match_subsystem_nomatch_complete(self, context, subsystem): """ Test that w/ respect to the universe of devices returned by +@@ -147,7 +147,7 @@ class TestEnumerator(object): + + @failed_health_check_wrapper + @given(_CONTEXT_STRATEGY, _SYSNAME_STRATEGY) +- @settings(max_examples=5) ++ @settings(max_examples=5, deadline=500) + def test_match_sys_name(self, context, sysname): + """ + A sysname lookup only gives devices with that sysname. @@ -221,7 +221,7 @@ class TestEnumeratorMatchCombinations(ob unique_by=lambda p: p[0], ), @@ -31,3 +40,12 @@ def test_combined_property_matches(self, context, ppairs): """ Test for behaviour as observed in #1 +@@ -246,7 +246,7 @@ class TestEnumeratorMatchCombinations(ob + _SYSNAME_STRATEGY, + _MATCH_PROPERTY_STRATEGY, + ) +- @settings(max_examples=10) ++ @settings(max_examples=10, deadline=500) + def test_match(self, context, subsystem, sysname, ppair): + """ + Test that matches from different categories are a conjunction.