skipping bad keyspace metadata until python-440 is resolved
This commit is contained in:
@@ -36,6 +36,7 @@ from cassandra.pool import Host
|
||||
from tests.integration import get_cluster, use_singledc, PROTOCOL_VERSION, get_server_versions, execute_until_pass, \
|
||||
BasicSegregatedKeyspaceUnitTestCase, BasicSharedKeyspaceUnitTestCase, drop_keyspace_shutdown_cluster
|
||||
|
||||
from tests.unit.cython.utils import notcython
|
||||
|
||||
def setup_module():
|
||||
use_singledc()
|
||||
@@ -1906,6 +1907,7 @@ class BadMetaTest(unittest.TestCase):
|
||||
if CASS_SERVER_VERSION < version:
|
||||
raise unittest.SkipTest("Requires server version >= %s" % (version,))
|
||||
|
||||
@notcython
|
||||
def test_bad_keyspace(self):
|
||||
with patch.object(self.parser_class, '_build_keyspace_metadata_internal', side_effect=self.BadMetaException):
|
||||
self.cluster.refresh_keyspace_metadata(self.keyspace_name)
|
||||
|
||||
@@ -35,4 +35,5 @@ def cyimport(import_path):
|
||||
# @cythontest
|
||||
# def test_something(self): ...
|
||||
cythontest = unittest.skipUnless(HAVE_CYTHON, 'Cython is not available')
|
||||
numpytest = unittest.skipUnless(HAVE_CYTHON and HAVE_NUMPY, 'NumPy is not available')
|
||||
notcython = unittest.skipIf(HAVE_CYTHON, 'Cython not supported')
|
||||
numpytest = unittest.skipUnless(HAVE_CYTHON and HAVE_NUMPY, 'NumPy is not available')
|
||||
|
||||
Reference in New Issue
Block a user