public inbox for git-commits@fedoraproject.org
help / color / mirror / Atom feed
* [rpms/python-valkey] f43: Fix tests for build of version 6.2.0 on F44
@ 2026-10-14 16:10 Matteo Centenaro
  0 siblings, 0 replies; only message in thread
From: Matteo Centenaro @ 2026-10-14 16:10 UTC (permalink / raw)
  To: git-commits

A new commit has been pushed.

Repo   : rpms/python-valkey
Branch : f43
Commit : ed7dc71123f3ef2034a16a5b9c2126972fd674be
Author : Matteo Centenaro <matteo.centenaro@aiven.io>
Date   : 2026-10-14T14:02:35+02:00
Stats  : +54/-0 in 2 file(s)
URL    : https://src.fedoraproject.org/rpms/python-valkey/c/ed7dc71123f3ef2034a16a5b9c2126972fd674be?branch=f43

Log:
Fix tests for build of version 6.2.0 on F44

---
diff --git a/pr-303.patch b/pr-303.patch
new file mode 100644
index 0000000..80a47cc
--- /dev/null
+++ b/pr-303.patch
@@ -0,0 +1,50 @@
+diff --git a/tests/test_commands.py b/tests/test_commands.py
+index 0afbd37..4154632 100644
+--- a/tests/test_commands.py
++++ b/tests/test_commands.py
+@@ -332,11 +332,19 @@ class TestValkeyCommands:
+         assert set(acl["keys"]) == {"~cache:*", "~objects:*"}
+         assert len(acl["passwords"]) == 2
+         assert set(acl["channels"]) == {"&message:*"}
+-        assert_resp_response(
++        assert_resp_response_in(
+             r,
+             acl["selectors"],
+             [
+-                [
++                [[
++                    "commands",
++                    "-@all +set",
++                    "keys",
++                    "%W~app*",
++                    "channels",
++                    "",
++                ]],
++                [[
+                     "commands",
+                     "-@all +set",
+                     "keys",
+@@ -345,15 +353,20 @@ class TestValkeyCommands:
+                     "",
+                     "databases",
+                     "alldbs",
+-                ]
++                ]],
+             ],
+             [
+-                {
++                [{
++                    "commands": "-@all +set",
++                    "keys": "%W~app*",
++                    "channels": "",
++                }],
++                [{
+                     "commands": "-@all +set",
+                     "keys": "%W~app*",
+                     "channels": "",
+                     "databases": "alldbs",
+-                }
++                }],
+             ],
+         )
+ 

diff --git a/python-valkey.spec b/python-valkey.spec
index 8382094..848ea3b 100644
--- a/python-valkey.spec
+++ b/python-valkey.spec
@@ -10,6 +10,10 @@ Source:         %{url}/archive/v%{version}/python-valkey-%{version}.tar.gz
 # Upstream issue:
 # https://github.com/valkey-io/valkey-py/pull/360
 Patch0:         pr-360.patch
+# Fix test_acl_getuser_setuser for newer Valkey versions
+# Upstream issue:
+# https://github.com/valkey-io/valkey-py/pull/303
+Patch1:         pr-303.patch
 BuildArch:      noarch
 
 BuildRequires:  python3-devel

^ permalink raw reply related	[flat|nested] only message in thread

only message in thread, other threads:[~2026-10-14 16:10 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2026-10-14 16:10 [rpms/python-valkey] f43: Fix tests for build of version 6.2.0 on F44 Matteo Centenaro

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox