@@ -711,8 +711,9 @@ async def test_config_set_for_search_module(self, r: redis.Redis):
711
711
"search-default-dialect"
712
712
] == default_dialect_new
713
713
assert (
714
- (await r .ft ().config_get ("*" ))[b"DEFAULT_DIALECT" ]
715
- ).decode () == default_dialect_new
714
+ ((await r .ft ().config_get ("*" ))[b"DEFAULT_DIALECT" ]).decode ()
715
+ == default_dialect_new
716
+ )
716
717
except AssertionError as ex :
717
718
raise ex
718
719
finally :
@@ -844,7 +845,7 @@ async def test_bitop_not_empty_string(self, r: redis.Redis):
844
845
@skip_if_server_version_lt ("2.6.0" )
845
846
@pytest .mark .onlynoncluster
846
847
async def test_bitop_not (self , r : redis .Redis ):
847
- test_str = b"\xAA \x00 \xFF \x55 "
848
+ test_str = b"\xaa \x00 \xff \x55 "
848
849
correct = ~ 0xAA00FF55 & 0xFFFFFFFF
849
850
await r .set ("a" , test_str )
850
851
await r .bitop ("not" , "r" , "a" )
@@ -853,7 +854,7 @@ async def test_bitop_not(self, r: redis.Redis):
853
854
@skip_if_server_version_lt ("2.6.0" )
854
855
@pytest .mark .onlynoncluster
855
856
async def test_bitop_not_in_place (self , r : redis .Redis ):
856
- test_str = b"\xAA \x00 \xFF \x55 "
857
+ test_str = b"\xaa \x00 \xff \x55 "
857
858
correct = ~ 0xAA00FF55 & 0xFFFFFFFF
858
859
await r .set ("a" , test_str )
859
860
await r .bitop ("not" , "a" , "a" )
@@ -862,7 +863,7 @@ async def test_bitop_not_in_place(self, r: redis.Redis):
862
863
@skip_if_server_version_lt ("2.6.0" )
863
864
@pytest .mark .onlynoncluster
864
865
async def test_bitop_single_string (self , r : redis .Redis ):
865
- test_str = b"\x01 \x02 \xFF "
866
+ test_str = b"\x01 \x02 \xff "
866
867
await r .set ("a" , test_str )
867
868
await r .bitop ("and" , "res1" , "a" )
868
869
await r .bitop ("or" , "res2" , "a" )
@@ -874,8 +875,8 @@ async def test_bitop_single_string(self, r: redis.Redis):
874
875
@skip_if_server_version_lt ("2.6.0" )
875
876
@pytest .mark .onlynoncluster
876
877
async def test_bitop_string_operands (self , r : redis .Redis ):
877
- await r .set ("a" , b"\x01 \x02 \xFF \xFF " )
878
- await r .set ("b" , b"\x01 \x02 \xFF " )
878
+ await r .set ("a" , b"\x01 \x02 \xff \xff " )
879
+ await r .set ("b" , b"\x01 \x02 \xff " )
879
880
await r .bitop ("and" , "res1" , "a" , "b" )
880
881
await r .bitop ("or" , "res2" , "a" , "b" )
881
882
await r .bitop ("xor" , "res3" , "a" , "b" )
0 commit comments