From 381d8fbb8843cdb82dde24295ecb19eab96e00b8 Mon Sep 17 00:00:00 2001 From: Jon Haddad Date: Wed, 13 Aug 2014 13:48:25 -0700 Subject: [PATCH] fixing c 1.2 --- bin/test.py | 2 +- cqlengine/tests/base.py | 1 - tox.ini | 2 +- 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/bin/test.py b/bin/test.py index 7cefb356..9f4d278c 100755 --- a/bin/test.py +++ b/bin/test.py @@ -10,7 +10,7 @@ sys.path.append("") from cqlengine import connection try: - CASSANDRA_VERSION = os.environ["CASSANDRA_VERSION"] + CASSANDRA_VERSION = int(os.environ["CASSANDRA_VERSION"]) except: print "CASSANDRA_VERSION must be set as an environment variable. One of (12, 20, 21)" raise diff --git a/cqlengine/tests/base.py b/cqlengine/tests/base.py index c195bae9..61b5db21 100644 --- a/cqlengine/tests/base.py +++ b/cqlengine/tests/base.py @@ -1,5 +1,4 @@ from unittest import TestCase -from cqlengine import connection import os from cqlengine.connection import get_session diff --git a/tox.ini b/tox.ini index eee19848..fdac408c 100644 --- a/tox.ini +++ b/tox.ini @@ -3,4 +3,4 @@ envlist=py27,py34 [testenv] deps= -rrequirements.txt -commands=nosetests --no-skip +commands=bin/test.py --no-skip