diff options
Diffstat (limited to 'test/engine/execute.py')
-rw-r--r-- | test/engine/execute.py | 11 |
1 files changed, 5 insertions, 6 deletions
diff --git a/test/engine/execute.py b/test/engine/execute.py index e449af9ad..85a99c452 100644 --- a/test/engine/execute.py +++ b/test/engine/execute.py @@ -2,7 +2,7 @@ import testenv; testenv.configure_for_tests() import re from sqlalchemy.interfaces import ConnectionProxy from testlib.sa import MetaData, Table, Column, Integer, String, INT, \ - VARCHAR, func + VARCHAR, func, bindparam import testlib.sa as tsa from testlib import TestBase, testing, engines @@ -79,11 +79,10 @@ class ExecuteTest(TestBase): assert True def test_empty_insert(self): - try: - result = testing.db.execute(users.insert(), []) - assert [] == list(result) - except: - assert False + """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 class ProxyConnectionTest(TestBase): @testing.fails_on('firebird') # Data type unknown |