forked from pool/python-evdev
- Update to 1.9.0
* Slightly faster reading of events in device.read() and
device.read_one().
* Drop deprecated InputDevice.fn (use InputDevice.path instead).
* Improve type hint coverage and add a py.typed file.
- Remove fix-tests.patch as it was included upstream.
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-evdev?expand=0&rev=36
This commit is contained in:
25
fix-tests.patch
Normal file
25
fix-tests.patch
Normal file
@@ -0,0 +1,25 @@
|
||||
From: Georgi Valkov <georgi.t.valkov@gmail.com>
|
||||
Date: Sat, 25 Jan 2025 18:04:39 +0100
|
||||
Subject: [PATCH] Fix tests
|
||||
Upstream: merged
|
||||
|
||||
This is pulled from upstream main branch where it was committed right after the release.
|
||||
|
||||
---
|
||||
tests/test_util.py | 2 +-
|
||||
1 file changed, 1 insertion(+), 1 deletion(-)
|
||||
|
||||
diff --git a/tests/test_util.py b/tests/test_util.py
|
||||
index 5a979df..7112927 100644
|
||||
--- a/tests/test_util.py
|
||||
+++ b/tests/test_util.py
|
||||
@@ -6,7 +6,7 @@ def test_match_ecodes_a():
|
||||
assert res == {1: [372, 418, 419, 420]}
|
||||
assert dict(util.resolve_ecodes_dict(res)) == {
|
||||
("EV_KEY", 1): [
|
||||
- (["KEY_FULL_SCREEN", "KEY_ZOOM"], 372),
|
||||
+ (("KEY_FULL_SCREEN", "KEY_ZOOM"), 372),
|
||||
("KEY_ZOOMIN", 418),
|
||||
("KEY_ZOOMOUT", 419),
|
||||
("KEY_ZOOMRESET", 420),
|
||||
|
||||
Reference in New Issue
Block a user