From 11447041804dd39d05684c7809971a253c800cba Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 23 Jun 2013 20:13:28 -0400 Subject: [PATCH] YEAR(2) emits a warning and oursql / mysqlconnector throw an exception on the warning so just dump it --- test/dialect/test_mysql.py | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/test/dialect/test_mysql.py b/test/dialect/test_mysql.py index 33e2916f4f..ec6b1c1935 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') -- 2.47.3