gentoo/dev-python/pyudev/files/pyudev-0.24.3-tests.patch
Patrick McLean 9bc5eb110a
dev-python/pyudev: add 0.24.3
Signed-off-by: Patrick McLean <chutzpah@gentoo.org>
2024-08-27 10:30:13 -07:00

14 lines
630 B
Diff

diff --git a/tests/_device_tests/_attributes_tests.py b/tests/_device_tests/_attributes_tests.py
index 71b3a7a..9136cea 100644
--- a/tests/_device_tests/_attributes_tests.py
+++ b/tests/_device_tests/_attributes_tests.py
@@ -49,7 +49,7 @@ def test_getitem(self, a_context, device_datum):
device = Devices.from_path(a_context, device_datum.device_path)
assert all(
isinstance(device.attributes.get(key), bytes)
- for key in device_datum.attributes.keys()
+ for key in device_datum.attributes.keys() if key is not None
)
@given(strategies.sampled_from(_DEVICES))