@@ -1208,6 +1208,12 @@ def test_stralgo_lcs(self, r):
1208
1208
value1 = 'ohmytext'
1209
1209
value2 = 'mynewtext'
1210
1210
res = 'mytext'
1211
+
1212
+ if skip_if_redis_enterprise (None ).args [0 ] is True :
1213
+ with pytest .raises (redis .exceptions .ResponseError ):
1214
+ assert r .stralgo ('LCS' , value1 , value2 ) == res
1215
+ return
1216
+
1211
1217
# test LCS of strings
1212
1218
assert r .stralgo ('LCS' , value1 , value2 ) == res
1213
1219
# test using keys
@@ -1250,6 +1256,12 @@ def test_strlen(self, r):
1250
1256
1251
1257
def test_substr (self , r ):
1252
1258
r ['a' ] = '0123456789'
1259
+
1260
+ if skip_if_redis_enterprise (None ).args [0 ] is True :
1261
+ with pytest .raises (redis .exceptions .ResponseError ):
1262
+ assert r .substr ('a' , 0 ) == b'0123456789'
1263
+ return
1264
+
1253
1265
assert r .substr ('a' , 0 ) == b'0123456789'
1254
1266
assert r .substr ('a' , 2 ) == b'23456789'
1255
1267
assert r .substr ('a' , 3 , 5 ) == b'345'
@@ -3617,13 +3629,24 @@ def test_memory_doctor(self, r):
3617
3629
3618
3630
@skip_if_server_version_lt ('4.0.0' )
3619
3631
def test_memory_malloc_stats (self , r ):
3632
+ if skip_if_redis_enterprise (None ).args [0 ] is True :
3633
+ with pytest .raises (redis .exceptions .ResponseError ):
3634
+ assert r .memory_malloc_stats ()
3635
+ return
3636
+
3620
3637
assert r .memory_malloc_stats ()
3621
3638
3622
3639
@skip_if_server_version_lt ('4.0.0' )
3623
3640
def test_memory_stats (self , r ):
3624
3641
# put a key into the current db to make sure that "db.<current-db>"
3625
3642
# has data
3626
3643
r .set ('foo' , 'bar' )
3644
+
3645
+ if skip_if_redis_enterprise (None ).args [0 ] is True :
3646
+ with pytest .raises (redis .exceptions .ResponseError ):
3647
+ stats = r .memory_stats ()
3648
+ return
3649
+
3627
3650
stats = r .memory_stats ()
3628
3651
assert isinstance (stats , dict )
3629
3652
for key , value in stats .items ():
0 commit comments