@@ -372,15 +372,15 @@ def _id_and_mark(f):
372
372
# 1. unittest doesn't skip setUpClass when used on class and we need it sometimes
373
373
# 2. unittest doesn't have conditional xfail, and I prefer to use pytest than custom decorator
374
374
# 3. unittest doesn't have a reason argument, so you don't see the reason in pytest report
375
- requires_collection_indexes = pytest .mark .xfail (SCYLLA_VERSION is not None and Version (SCYLLA_VERSION .split (':' )[1 ]) < Version ('5.2' ),
375
+ requires_collection_indexes = pytest .mark .skipif (SCYLLA_VERSION is not None and Version (SCYLLA_VERSION .split (':' )[1 ]) < Version ('5.2' ),
376
376
reason = 'Scylla supports collection indexes from 5.2 onwards' )
377
- requires_custom_indexes = pytest .mark .xfail (SCYLLA_VERSION is not None ,
377
+ requires_custom_indexes = pytest .mark .skipif (SCYLLA_VERSION is not None ,
378
378
reason = 'Scylla does not support SASI or any other CUSTOM INDEX class' )
379
- requires_java_udf = pytest .mark .xfail (SCYLLA_VERSION is not None ,
379
+ requires_java_udf = pytest .mark .skipif (SCYLLA_VERSION is not None ,
380
380
reason = 'Scylla does not support UDFs written in Java' )
381
- requires_composite_type = pytest .mark .xfail (SCYLLA_VERSION is not None ,
381
+ requires_composite_type = pytest .mark .skipif (SCYLLA_VERSION is not None ,
382
382
reason = 'Scylla does not support composite types' )
383
- requires_custom_payload = pytest .mark .xfail (SCYLLA_VERSION is not None or PROTOCOL_VERSION < 4 ,
383
+ requires_custom_payload = pytest .mark .skipif (SCYLLA_VERSION is not None or PROTOCOL_VERSION < 4 ,
384
384
reason = 'Scylla does not support custom payloads. Cassandra requires native protocol v4.0+' )
385
385
xfail_scylla = lambda reason , * args , ** kwargs : pytest .mark .xfail (SCYLLA_VERSION is not None , reason = reason , * args , ** kwargs )
386
386
incorrect_test = lambda reason = 'This test seems to be incorrect and should be fixed' , * args , ** kwargs : pytest .mark .xfail (reason = reason , * args , ** kwargs )
0 commit comments