diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-23 20:13:28 -0400 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2013-06-23 20:13:28 -0400 |
commit | 11447041804dd39d05684c7809971a253c800cba (patch) | |
tree | 9d9d55d6189009f012880ac8a24ed838064e8fd2 | |
parent | 2f747e0ad2e53efec4dc6d050fbeef7f0544f632 (diff) | |
download | sqlalchemy-11447041804dd39d05684c7809971a253c800cba.tar.gz |
YEAR(2) emits a warning and oursql / mysqlconnector throw an exception
on the warning so just dump it
-rw-r--r-- | test/dialect/test_mysql.py | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 33e2916f4..ec6b1c193 100644 --- a/test/dialect/test_mysql.py +++ b/test/dialect/test_mysql.py @@ -587,7 +587,6 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): Column('y1', mysql.MSYear), Column('y2', mysql.MSYear), Column('y3', mysql.MSYear), - Column('y4', mysql.MSYear(2)), Column('y5', mysql.MSYear(4))) for col in year_table.c: @@ -597,12 +596,11 @@ class TypesTest(fixtures.TestBase, AssertsExecutionResults, AssertsCompiledSQL): autoload=True) for table in year_table, reflected: - table.insert(['1950', '50', None, 50, 1950]).execute() + table.insert(['1950', '50', None, 1950]).execute() row = table.select().execute().first() - eq_(list(row), [1950, 2050, None, 50, 1950]) + eq_(list(row), [1950, 2050, None, 1950]) table.delete().execute() self.assert_(colspec(table.c.y1).startswith('y1 YEAR')) - eq_(colspec(table.c.y4), 'y4 YEAR(2)') eq_(colspec(table.c.y5), 'y5 YEAR(4)') @testing.only_if('mysql') |