Skip to content

Commit 6d8c3e7

Browse files
committed
[mysql] testing several versions of mysql.connector (1.2, 2.0, 2.1)
1 parent 9c91781 commit 6d8c3e7

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

tests/contrib/mysql/test_mysql.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def tearDown():
7979
def test_version():
8080
"""Print client version"""
8181
# trick to bypass nose output capture -> spawn a subprocess
82-
call(["echo", "\nmysql.connection.__version__: %s" % str(connector_version)])
82+
call(["echo", "\nmysql.connector.__version__: %s" % str(connector_version)])
8383

8484
def test_connection():
8585
"""Tests that a connection can be opened."""

tox.ini

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,9 @@ deps =
4343
flaskcache013: flask_cache>=0.13,<0.14
4444
mongoengine
4545
psycopg2
46-
all: mysql-connector
46+
mysql-connector12: mysql-connector>=1.2,<2.0
47+
mysql-connector20: mysql-connector>=2.0,<2.1
48+
mysql-connector21: mysql-connector>=2.1,<2.2
4749
all: pymongo
4850
pymongo30: pymongo>=3.0,<3.1
4951
pymongo31: pymongo>=3.1,<3.2
@@ -72,6 +74,7 @@ commands =
7274
{py27,py34}-falcon{10}: nosetests {posargs} tests/contrib/falcon
7375
{py27,py34}-pymongo{30,31,32,33}: nosetests {posargs} tests/contrib/pymongo/ tests/contrib/mongoengine
7476
{py27,py34}-sqlalchemy{10,11}: nosetests {posargs} tests/contrib/sqlalchemy tests/contrib/psycopg tests/contrib/sqlite3
77+
{py27,py34}-mysql-connector{12,20,21}: nosetests {posargs} tests/contrib/mysql
7578

7679
[testenv:flake8]
7780
deps=flake8

0 commit comments

Comments
 (0)