diff options
author | Michael Mair-Keimberger <mmk@levelnine.at> | 2021-11-25 17:58:15 +0100 |
---|---|---|
committer | Arthur Zamarin <arthurzam@gentoo.org> | 2021-11-25 20:41:56 +0200 |
commit | d70bf5792334bfcf02e020e79c7abc21b465e480 (patch) | |
tree | 4fdd2c4bfa897cd7d403e0fea8ee4b69492da69f /dev-python/pyudev | |
parent | dev-python/google-pasta: mark ALLARCHES (diff) | |
download | gentoo-d70bf5792334bfcf02e020e79c7abc21b465e480.tar.gz gentoo-d70bf5792334bfcf02e020e79c7abc21b465e480.tar.bz2 gentoo-d70bf5792334bfcf02e020e79c7abc21b465e480.zip |
dev-python/pyudev: remove unused patch
Package-Manager: Portage-3.0.28, Repoman-3.0.3
Signed-off-by: Michael Mair-Keimberger <mmk@levelnine.at>
Closes: https://github.com/gentoo/gentoo/pull/23083
Signed-off-by: Arthur Zamarin <arthurzam@gentoo.org>
Diffstat (limited to 'dev-python/pyudev')
-rw-r--r-- | dev-python/pyudev/files/pyudev-0.22-remove-flaky-tests.patch | 126 |
1 files changed, 0 insertions, 126 deletions
diff --git a/dev-python/pyudev/files/pyudev-0.22-remove-flaky-tests.patch b/dev-python/pyudev/files/pyudev-0.22-remove-flaky-tests.patch deleted file mode 100644 index dd5b892606a3..000000000000 --- a/dev-python/pyudev/files/pyudev-0.22-remove-flaky-tests.patch +++ /dev/null @@ -1,126 +0,0 @@ -commit a35c394f7f4eb714eeaab1b8ed7977f822e29fa9 -Author: mulhern <amulhern@redhat.com> -Date: Wed May 2 15:50:45 2018 -0400 - - Get rid of all test_match_attribute_* methods - - These tests are rendered flaky by the volatility of attribute values. - - Signed-off-by: mulhern <amulhern@redhat.com> - -diff --git a/tests/test_enumerate.py b/tests/test_enumerate.py -index f054799..c9c6a67 100644 ---- a/tests/test_enumerate.py -+++ b/tests/test_enumerate.py -@@ -200,77 +200,6 @@ def test_match_property_bool(self, context, pair): - for device in devices - ) - -- @failed_health_check_wrapper -- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY) -- @settings(max_examples=50) -- def test_match_attribute_nomatch_unfulfillable(self, context, pair): -- """ -- Match and no match for a key/value gives empty set. -- """ -- key, value = pair -- devices = context.list_devices() -- devices.match_attribute(key, value) -- devices.match_attribute(key, value, nomatch=True) -- assert not list(devices) -- -- @failed_health_check_wrapper -- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY) -- @settings(max_examples=50) -- def test_match_attribute_nomatch_complete(self, context, pair): -- """ -- Test that w/ respect to the universe of devices returned by -- list_devices() a match and its inverse are complements of each other. -- """ -- key, value = pair -- m_devices = frozenset(context.list_devices().match_attribute( -- key, value)) -- nm_devices = frozenset(context.list_devices().match_attribute( -- key, value, nomatch=True)) -- _test_intersection_and_union(context, m_devices, nm_devices) -- -- @failed_health_check_wrapper -- @given(_CONTEXT_STRATEGY, _ATTRIBUTE_STRATEGY) -- @settings(max_examples=50) -- def test_match_attribute_string(self, context, pair): -- """ -- Test that matching attribute as string works. -- """ -- key, value = pair -- devices = context.list_devices().match_attribute(key, value) -- assert all(device.attributes.get(key) == value for device in devices) -- -- @failed_health_check_wrapper -- @given(_CONTEXT_STRATEGY, -- _ATTRIBUTE_STRATEGY.filter(lambda x: _is_int(x[1]))) -- @settings(max_examples=50) -- def test_match_attribute_int(self, context, pair): -- """ -- Test matching integer attribute. -- """ -- key, value = pair -- int_value = int(value) -- devices = context.list_devices().match_attribute(key, int_value) -- for device in devices: -- attributes = device.attributes -- assert attributes.get(key) == value -- assert device.attributes.asint(key) == int_value -- -- @failed_health_check_wrapper -- @given(_CONTEXT_STRATEGY, -- _ATTRIBUTE_STRATEGY.filter(lambda x: _is_bool(x[1]))) -- @settings(max_examples=50) -- def test_match_attribute_bool(self, context, pair): -- """ -- Test matching boolean attribute. -- """ -- key, value = pair -- bool_value = True if int(value) == 1 else False -- devices = context.list_devices().match_attribute(key, bool_value) -- for device in devices: -- attributes = device.attributes -- assert attributes.get(key) == value -- assert attributes.asbool(key) == bool_value -- - @_UDEV_TEST(154, "test_match_tag") - @failed_health_check_wrapper - @given(_CONTEXT_STRATEGY, _TAG_STRATEGY) -@@ -335,33 +264,6 @@ def test_combined_property_matches(self, context, ppairs): - ) - ) - -- @given(_CONTEXT_STRATEGY, -- strategies.lists( -- elements=_ATTRIBUTE_STRATEGY, -- min_size=2, -- max_size=3, -- unique_by=lambda p: p[0])) -- @settings(max_examples=20) -- def test_combined_attribute_matches(self, context, apairs): -- """ -- Test for conjunction of attributes. -- -- If matching multiple attributes, then the result is the intersection of -- the matching sets, i.e., the resulting filter is a conjunction. -- """ -- enumeration = context.list_devices() -- -- for key, value in apairs: -- enumeration.match_attribute(key, value) -- -- _test_direct_and_complement( -- context, -- frozenset(enumeration), -- lambda d: all( -- d.attributes.get(key) == value for key, value in apairs -- ) -- ) -- - @given(_CONTEXT_STRATEGY, - strategies.lists( - elements=_MATCH_PROPERTY_STRATEGY, |