Skip to content

Commit bbba912

Browse files
committed
skipping bad keyspace metadata until python-440 is resolved
1 parent c488c57 commit bbba912

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

tests/integration/standard/test_metadata.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
from tests.integration import get_cluster, use_singledc, PROTOCOL_VERSION, get_server_versions, execute_until_pass, \
3737
BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase, drop_keyspace_shutdown_cluster
3838

39+
from tests.unit.cython.utils import notcython
3940

4041
def setup_module():
4142
use_singledc()
@@ -1906,6 +1907,7 @@ def _skip_if_not_version(self, version):
19061907
if CASS_SERVER_VERSION < version:
19071908
raise unittest.SkipTest("Requires server version >= %s" % (version,))
19081909

1910+
@notcython
19091911
def test_bad_keyspace(self):
19101912
with patch.object(self.parser_class, '_build_keyspace_metadata_internal', side_effect=self.BadMetaException):
19111913
self.cluster.refresh_keyspace_metadata(self.keyspace_name)

tests/unit/cython/utils.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,4 +35,5 @@ def cyimport(import_path):
3535
# @cythontest
3636
# def test_something(self): ...
3737
cythontest = unittest.skipUnless(HAVE_CYTHON, 'Cython is not available')
38-
numpytest = unittest.skipUnless(HAVE_CYTHON and HAVE_NUMPY, 'NumPy is not available')
38+
notcython = unittest.skipIf(HAVE_CYTHON, 'Cython not supported')
39+
numpytest = unittest.skipUnless(HAVE_CYTHON and HAVE_NUMPY, 'NumPy is not available')

0 commit comments

Comments
 (0)