From 95c6008acf4ee2460d5ab1a357fc594d8ef9d69d Mon Sep 17 00:00:00 2001 From: GregBestland Date: Thu, 22 Oct 2015 17:06:51 -0500 Subject: [PATCH] Adding skip to test for auto paging and protocol v1 --- tests/integration/__init__.py | 2 ++ tests/integration/standard/test_cython_protocol_handlers.py | 3 ++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/tests/integration/__init__.py b/tests/integration/__init__.py index 4509cba1..7cdb7143 100644 --- a/tests/integration/__init__.py +++ b/tests/integration/__init__.py @@ -126,6 +126,8 @@ else: PROTOCOL_VERSION = int(os.getenv('PROTOCOL_VERSION', default_protocol_version)) +notprotocolv1 = unittest.skipUnless(PROTOCOL_VERSION > 1, 'Protocol v1 not supported') + def get_cluster(): return CCM_CLUSTER diff --git a/tests/integration/standard/test_cython_protocol_handlers.py b/tests/integration/standard/test_cython_protocol_handlers.py index 888f73fe..a13c5e21 100644 --- a/tests/integration/standard/test_cython_protocol_handlers.py +++ b/tests/integration/standard/test_cython_protocol_handlers.py @@ -11,7 +11,7 @@ from cassandra.query import tuple_factory from cassandra.cluster import Cluster from cassandra.protocol import ProtocolHandler, LazyProtocolHandler, NumpyProtocolHandler -from tests.integration import use_singledc, PROTOCOL_VERSION +from tests.integration import use_singledc, PROTOCOL_VERSION, notprotocolv1 from tests.integration.datatype_utils import update_datatypes from tests.integration.standard.utils import ( create_table_with_all_types, get_all_primitive_params, get_primitive_datatypes) @@ -55,6 +55,7 @@ class CythonProtocolHandlerTest(unittest.TestCase): """ verify_iterator_data(self.assertEqual, get_data(LazyProtocolHandler)) + @notprotocolv1 @numpytest def test_cython_lazy_results_paged(self): """