summaryrefslogtreecommitdiff
path: root/test/dialect/test_postgresql.py
diff options
context:
space:
mode:
authorMike Bayer <mike_mp@zzzcomputing.com>2013-04-22 17:08:02 -0400
committerMike Bayer <mike_mp@zzzcomputing.com>2013-04-22 17:08:02 -0400
commitd2f8c83e25ea7abb49315c30518f6415b497f1a7 (patch)
tree38710ed38b7e3924084680431262db5e4a9ff1e2 /test/dialect/test_postgresql.py
parent422f4718715ad89346f42caf03bdd2ed745e5a23 (diff)
downloadsqlalchemy-d2f8c83e25ea7abb49315c30518f6415b497f1a7.tar.gz
- change to [ticket:2681], pre-coerce the array to list
unconditonally instead so that it works in all cases.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r--test/dialect/test_postgresql.py13
1 files changed, 3 insertions, 10 deletions
diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py
index 3455b8ff1..42c8c85c4 100644
--- a/test/dialect/test_postgresql.py
+++ b/test/dialect/test_postgresql.py
@@ -2279,21 +2279,14 @@ class ArrayTest(fixtures.TablesTest, AssertsExecutionResults):
)
def test_undim_array_contains_set_exec(self):
- assert_raises_message(
- exc.StatementError,
- "Cannot auto-coerce ARRAY value of type",
- self._test_undim_array_contains_typed_exec, set
- )
+ self._test_undim_array_contains_typed_exec(set)
def test_undim_array_contains_list_exec(self):
self._test_undim_array_contains_typed_exec(list)
def test_undim_array_contains_generator_exec(self):
- assert_raises_message(
- exc.StatementError,
- "Cannot auto-coerce ARRAY value of type",
- self._test_undim_array_contains_typed_exec, lambda elem: (x for x in elem)
- )
+ self._test_undim_array_contains_typed_exec(
+ lambda elem: (x for x in elem))
def _test_dim_array_contains_typed_exec(self, struct):
dim_arrtable = self.tables.dim_arrtable