@@ -147,7 +147,6 @@ async def get_mocked_redis_client(
147147 with mock .patch .object (ClusterNode , "execute_command" ) as execute_command_mock :
148148
149149 async def execute_command (* _args , ** _kwargs ):
150-
151150 if _args [0 ] == "CLUSTER SLOTS" :
152151 if cluster_slots_raise_error :
153152 raise ResponseError ()
@@ -1580,23 +1579,23 @@ async def test_cluster_bitop_not_empty_string(self, r: RedisCluster) -> None:
15801579
15811580 @skip_if_server_version_lt ("2.6.0" )
15821581 async def test_cluster_bitop_not (self , r : RedisCluster ) -> None :
1583- test_str = b"\xAA \x00 \xFF \x55 "
1582+ test_str = b"\xaa \x00 \xff \x55 "
15841583 correct = ~ 0xAA00FF55 & 0xFFFFFFFF
15851584 await r .set ("{foo}a" , test_str )
15861585 await r .bitop ("not" , "{foo}r" , "{foo}a" )
15871586 assert int (binascii .hexlify (await r .get ("{foo}r" )), 16 ) == correct
15881587
15891588 @skip_if_server_version_lt ("2.6.0" )
15901589 async def test_cluster_bitop_not_in_place (self , r : RedisCluster ) -> None :
1591- test_str = b"\xAA \x00 \xFF \x55 "
1590+ test_str = b"\xaa \x00 \xff \x55 "
15921591 correct = ~ 0xAA00FF55 & 0xFFFFFFFF
15931592 await r .set ("{foo}a" , test_str )
15941593 await r .bitop ("not" , "{foo}a" , "{foo}a" )
15951594 assert int (binascii .hexlify (await r .get ("{foo}a" )), 16 ) == correct
15961595
15971596 @skip_if_server_version_lt ("2.6.0" )
15981597 async def test_cluster_bitop_single_string (self , r : RedisCluster ) -> None :
1599- test_str = b"\x01 \x02 \xFF "
1598+ test_str = b"\x01 \x02 \xff "
16001599 await r .set ("{foo}a" , test_str )
16011600 await r .bitop ("and" , "{foo}res1" , "{foo}a" )
16021601 await r .bitop ("or" , "{foo}res2" , "{foo}a" )
@@ -1607,8 +1606,8 @@ async def test_cluster_bitop_single_string(self, r: RedisCluster) -> None:
16071606
16081607 @skip_if_server_version_lt ("2.6.0" )
16091608 async def test_cluster_bitop_string_operands (self , r : RedisCluster ) -> None :
1610- await r .set ("{foo}a" , b"\x01 \x02 \xFF \xFF " )
1611- await r .set ("{foo}b" , b"\x01 \x02 \xFF " )
1609+ await r .set ("{foo}a" , b"\x01 \x02 \xff \xff " )
1610+ await r .set ("{foo}b" , b"\x01 \x02 \xff " )
16121611 await r .bitop ("and" , "{foo}res1" , "{foo}a" , "{foo}b" )
16131612 await r .bitop ("or" , "{foo}res2" , "{foo}a" , "{foo}b" )
16141613 await r .bitop ("xor" , "{foo}res3" , "{foo}a" , "{foo}b" )
0 commit comments