diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-10-05 00:24:43 +0000 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2008-10-05 00:24:43 +0000 |
commit | 4597c678ac306094a15c5424759d4cc3dbad3d0c (patch) | |
tree | 316e69b2ffc1ba1bf70708c58a440e228c8efbce /test/engine/execute.py | |
parent | 8f4999a70bc68801ba032ffdd367249186d4cb67 (diff) | |
download | sqlalchemy-4597c678ac306094a15c5424759d4cc3dbad3d0c.tar.gz |
fixed test for #1175
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 |