@@ -142,7 +142,6 @@ async def get_mocked_redis_client(
142142 with mock .patch .object (ClusterNode , "execute_command" ) as execute_command_mock :
143143
144144 async def execute_command (* _args , ** _kwargs ):
145-
146145 if _args [0 ] == "CLUSTER SLOTS" :
147146 if cluster_slots_raise_error :
148147 raise ResponseError ()
@@ -1574,23 +1573,23 @@ async def test_cluster_bitop_not_empty_string(self, r: RedisCluster) -> None:
15741573
15751574 @skip_if_server_version_lt ("2.6.0" )
15761575 async def test_cluster_bitop_not (self , r : RedisCluster ) -> None :
1577- test_str = b"\xAA \x00 \xFF \x55 "
1576+ test_str = b"\xaa \x00 \xff \x55 "
15781577 correct = ~ 0xAA00FF55 & 0xFFFFFFFF
15791578 await r .set ("{foo}a" , test_str )
15801579 await r .bitop ("not" , "{foo}r" , "{foo}a" )
15811580 assert int (binascii .hexlify (await r .get ("{foo}r" )), 16 ) == correct
15821581
15831582 @skip_if_server_version_lt ("2.6.0" )
15841583 async def test_cluster_bitop_not_in_place (self , r : RedisCluster ) -> None :
1585- test_str = b"\xAA \x00 \xFF \x55 "
1584+ test_str = b"\xaa \x00 \xff \x55 "
15861585 correct = ~ 0xAA00FF55 & 0xFFFFFFFF
15871586 await r .set ("{foo}a" , test_str )
15881587 await r .bitop ("not" , "{foo}a" , "{foo}a" )
15891588 assert int (binascii .hexlify (await r .get ("{foo}a" )), 16 ) == correct
15901589
15911590 @skip_if_server_version_lt ("2.6.0" )
15921591 async def test_cluster_bitop_single_string (self , r : RedisCluster ) -> None :
1593- test_str = b"\x01 \x02 \xFF "
1592+ test_str = b"\x01 \x02 \xff "
15941593 await r .set ("{foo}a" , test_str )
15951594 await r .bitop ("and" , "{foo}res1" , "{foo}a" )
15961595 await r .bitop ("or" , "{foo}res2" , "{foo}a" )
@@ -1601,8 +1600,8 @@ async def test_cluster_bitop_single_string(self, r: RedisCluster) -> None:
16011600
16021601 @skip_if_server_version_lt ("2.6.0" )
16031602 async def test_cluster_bitop_string_operands (self , r : RedisCluster ) -> None :
1604- await r .set ("{foo}a" , b"\x01 \x02 \xFF \xFF " )
1605- await r .set ("{foo}b" , b"\x01 \x02 \xFF " )
1603+ await r .set ("{foo}a" , b"\x01 \x02 \xff \xff " )
1604+ await r .set ("{foo}b" , b"\x01 \x02 \xff " )
16061605 await r .bitop ("and" , "{foo}res1" , "{foo}a" , "{foo}b" )
16071606 await r .bitop ("or" , "{foo}res2" , "{foo}a" , "{foo}b" )
16081607 await r .bitop ("xor" , "{foo}res3" , "{foo}a" , "{foo}b" )
0 commit comments