From: Michael Trier Date: Thu, 9 Oct 2008 23:28:45 +0000 (+0000) Subject: indicated that test_empty_insert fails on mssql since pyodbc returns a -1 always... X-Git-Tag: rel_0_5rc2~5 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=188a990e221c7a84c350886dd699ce3f01932b8c;p=thirdparty%2Fsqlalchemy%2Fsqlalchemy.git indicated that test_empty_insert fails on mssql since pyodbc returns a -1 always for the result.rowcount. --- diff --git a/test/engine/execute.py b/test/engine/execute.py index 85a99c4524..c45c0744d2 100644 --- a/test/engine/execute.py +++ b/test/engine/execute.py @@ -78,11 +78,11 @@ class ExecuteTest(TestBase): except tsa.exc.DBAPIError: assert True + @testing.fails_on('mssql') def test_empty_insert(self): """test that execute() interprets [] as a list with no params""" - result = testing.db.execute(users.insert().values(user_name=bindparam('name')), []) - assert result.rowcount == 1 + self.assertEquals(result.rowcount, 1) class ProxyConnectionTest(TestBase): @testing.fails_on('firebird') # Data type unknown