@@ -51,21 +51,13 @@ def test_get_moveable_keys(self, r):
51
51
]
52
52
args7 = ["MIGRATE" , "192.168.1.34" , 6379 , "key1" , 0 , 5000 ]
53
53
54
- assert commands_parser .get_keys (r , * args1 ).sort () == ["key1" , "key2" ].sort ()
55
- assert (
56
- commands_parser .get_keys (r , * args2 ).sort () == ["mystream" , "writers" ].sort ()
57
- )
58
- assert (
59
- commands_parser .get_keys (r , * args3 ).sort ()
60
- == ["out" , "zset1" , "zset2" ].sort ()
61
- )
62
- assert commands_parser .get_keys (r , * args4 ).sort () == ["Sicily" , "out" ].sort ()
63
- assert commands_parser .get_keys (r , * args5 ).sort () == ["foo" ].sort ()
64
- assert (
65
- commands_parser .get_keys (r , * args6 ).sort ()
66
- == ["key1" , "key2" , "key3" ].sort ()
67
- )
68
- assert commands_parser .get_keys (r , * args7 ).sort () == ["key1" ].sort ()
54
+ assert sorted (commands_parser .get_keys (r , * args1 )) == ["key1" , "key2" ]
55
+ assert sorted (commands_parser .get_keys (r , * args2 )) == ["mystream" , "writers" ]
56
+ assert sorted (commands_parser .get_keys (r , * args3 )) == ["out" , "zset1" , "zset2" ]
57
+ assert sorted (commands_parser .get_keys (r , * args4 )) == ["Sicily" , "out" ]
58
+ assert sorted (commands_parser .get_keys (r , * args5 )) == ["foo" ]
59
+ assert sorted (commands_parser .get_keys (r , * args6 )) == ["key1" , "key2" , "key3" ]
60
+ assert sorted (commands_parser .get_keys (r , * args7 )) == ["key1" ]
69
61
70
62
# A bug in redis<7.0 causes this to fail: https://github.com/redis/redis/issues/9493
71
63
@skip_if_server_version_lt ("7.0.0" )
0 commit comments