Skip to content

Commit 3db3f37

Browse files
committed
Adding skip logic to few test scenarios
1 parent 11c1357 commit 3db3f37

1 file changed

Lines changed: 5 additions & 2 deletions

File tree

tests/integration/standard/test_metadata.py

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@
2525

2626
from cassandra import AlreadyExists, SignatureDescriptor, UserFunctionDescriptor, UserAggregateDescriptor
2727

28+
2829
from cassandra.cluster import Cluster
2930
from cassandra.cqltypes import DoubleType, Int32Type, ListType, UTF8Type, MapType, LongType
3031
from cassandra.encoder import Encoder
@@ -33,10 +34,10 @@
3334
get_schema_parser)
3435
from cassandra.policies import SimpleConvictionPolicy
3536
from cassandra.pool import Host
36-
from cassandra.query import SimpleStatement, ConsistencyLevel
3737

38+
from cassandra.cython_deps import HAVE_CYTHON
3839
from tests.integration import get_cluster, use_singledc, PROTOCOL_VERSION, get_server_versions, execute_until_pass, \
39-
BasicSharedKeyspaceUnitTestCase, BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase
40+
BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase, CASSANDRA_VERSION
4041

4142

4243
def setup_module():
@@ -1680,6 +1681,7 @@ def test_return_type_meta(self):
16801681
with self.VerifiedAggregate(self, **self.make_aggregate_kwargs('sum_int', Int32Type, init_cond=1)) as va:
16811682
self.assertIs(self.keyspace_aggregate_meta[va.signature].return_type, Int32Type)
16821683

1684+
@unittest.skipUnless(CASSANDRA_VERSION >= '3.0.0', "Skiping until CASSANDRA-10365 is resolved")
16831685
def test_init_cond(self):
16841686
"""
16851687
Test to verify that various initial conditions are correctly surfaced in various aggregate functions
@@ -1891,6 +1893,7 @@ def _skip_if_not_version(self, version):
18911893
if CASS_SERVER_VERSION < version:
18921894
raise unittest.SkipTest("Requires server version >= %s" % (version,))
18931895

1896+
@unittest.skipIf(CASSANDRA_VERSION >= '3.0.0' and HAVE_CYTHON, "Skiping test due to python-422")
18941897
def test_bad_keyspace(self):
18951898
with patch.object(self.parser_class, '_build_keyspace_metadata_internal', side_effect=self.BadMetaException):
18961899
self.cluster.refresh_keyspace_metadata(self.keyspace_name)

0 commit comments

Comments
 (0)