From d2f8c83e25ea7abb49315c30518f6415b497f1a7 Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Mon, 22 Apr 2013 17:08:02 -0400 Subject: - change to [ticket:2681], pre-coerce the array to list unconditonally instead so that it works in all cases. --- test/dialect/test_postgresql.py | 13 +++---------- 1 file changed, 3 insertions(+), 10 deletions(-) (limited to 'test/dialect/test_postgresql.py') 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 -- cgit v1.2.1