2626from cassandra .policies import HostDistance , RoundRobinPolicy , WhiteListRoundRobinPolicy
2727from tests .integration import use_singledc , PROTOCOL_VERSION , BasicSharedKeyspaceUnitTestCase , \
2828 greaterthanprotocolv3 , MockLoggingHandler , get_supported_protocol_versions , local , get_cluster , setup_keyspace , \
29- USE_CASS_EXTERNAL , greaterthanorequalcass40 , TestCluster , xfail_scylla
29+ USE_CASS_EXTERNAL , greaterthanorequalcass40 , TestCluster , xfail_scylla , xfail_scylla_version_lt
3030from tests import notwindows
3131from tests .integration import greaterthanorequalcass30 , get_node
3232from tests .util import assertListEqual , wait_until
@@ -804,6 +804,9 @@ def setUp(self):
804804 def tearDown (self ):
805805 self .cluster .shutdown ()
806806
807+ @xfail_scylla_version_lt (reason = 'scylladb/scylladb#18068 - LWT is not yet supported with tablets' ,
808+ scylla_version = '2025.4' ,
809+ raises = InvalidRequest )
807810 def test_conditional_update (self ):
808811 self .session .execute ("INSERT INTO test3rf.test (k, v) VALUES (0, 0)" )
809812 statement = SimpleStatement (
@@ -828,6 +831,9 @@ def test_conditional_update(self):
828831 assert result
829832 assert result .one ().applied
830833
834+ @xfail_scylla_version_lt (reason = 'scylladb/scylladb#18068 - LWT is not yet supported with tablets' ,
835+ scylla_version = '2025.4' ,
836+ raises = InvalidRequest )
831837 def test_conditional_update_with_prepared_statements (self ):
832838 self .session .execute ("INSERT INTO test3rf.test (k, v) VALUES (0, 0)" )
833839 statement = self .session .prepare (
@@ -850,6 +856,9 @@ def test_conditional_update_with_prepared_statements(self):
850856 assert result
851857 assert result .one ().applied
852858
859+ @xfail_scylla_version_lt (reason = 'scylladb/scylladb#18068 - LWT is not yet supported with tablets' ,
860+ scylla_version = '2025.4' ,
861+ raises = InvalidRequest )
853862 def test_conditional_update_with_batch_statements (self ):
854863 self .session .execute ("INSERT INTO test3rf.test (k, v) VALUES (0, 0)" )
855864 statement = BatchStatement (serial_consistency_level = ConsistencyLevel .SERIAL )
@@ -915,6 +924,9 @@ def tearDown(self):
915924 self .session .execute ("DROP TABLE test3rf.lwt_clustering" )
916925 self .cluster .shutdown ()
917926
927+ @xfail_scylla_version_lt (reason = 'scylladb/scylladb#18068 - LWT is not yet supported with tablets' ,
928+ scylla_version = '2025.4' ,
929+ raises = AttributeError )
918930 def test_no_connection_refused_on_timeout (self ):
919931 """
920932 Test for PYTHON-91 "Connection closed after LWT timeout"
0 commit comments