summaryrefslogtreecommitdiff
path: root/test/aaa_profiling
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2011-06-04 20:52:30 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2011-06-04 20:52:30 -0400
commit09080baad1a9f910a5a406dfad9241104ccbc6d8 (patch)
tree97bdbcc41d914e83cecede45033dd91732748e77 /test/aaa_profiling
parentc0f922116004d762991bdfe56da31d3b70e8c01d (diff)
downloadsqlalchemy-09080baad1a9f910a5a406dfad9241104ccbc6d8.tar.gz
- Adjusted the __contains__() method of
a RowProxy result row such that no exception throw is generated internally; NoSuchColumnError() also will generate its message regardless of whether or not the column construct can be coerced to a string. [ticket:2178]. Also in 0.6.8.
Diffstat (limited to 'test/aaa_profiling')
-rw-r--r--test/aaa_profiling/test_resultset.py8
1 files changed, 8 insertions, 0 deletions
diff --git a/test/aaa_profiling/test_resultset.py b/test/aaa_profiling/test_resultset.py
index e2c6ecd50..451912c8f 100644
--- a/test/aaa_profiling/test_resultset.py
+++ b/test/aaa_profiling/test_resultset.py
@@ -52,6 +52,14 @@ class ResultSetTest(fixtures.TestBase, AssertsExecutionResults):
def test_unicode(self):
[tuple(row) for row in t2.select().execute().fetchall()]
+ def test_contains_doesnt_compile(self):
+ row = t.select().execute().first()
+ c1 = Column('some column', Integer) + Column("some other column", Integer)
+ @profiling.function_call_count(9)
+ def go():
+ c1 in row
+ go()
+
class ExecutionTest(fixtures.TestBase):
__requires__ = 'cpython',
__only_on__ = 'sqlite'