From 1e29a74bd62c6c872819388e430901c35f84f07c Mon Sep 17 00:00:00 2001 From: Mike Bayer Date: Sun, 18 Nov 2012 10:38:02 -0500 Subject: Fixed a gotcha where inadvertently calling list() on a :class:`.ColumnElement` would go into an endless loop, if :meth:`.ColumnOperators.__getitem__` were implemented. A new NotImplementedError is emitted via ``__iter__()``. --- test/dialect/test_postgresql.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'test/dialect/test_postgresql.py') diff --git a/test/dialect/test_postgresql.py b/test/dialect/test_postgresql.py index 40d8d0c79..ab3f54a66 100644 --- a/test/dialect/test_postgresql.py +++ b/test/dialect/test_postgresql.py @@ -2941,7 +2941,8 @@ class HStoreTest(fixtures.TestBase): def test_cols_keys(self): self._test_cols( - self.hashcol.keys(), + # hide from 2to3 + getattr(self.hashcol, 'keys')(), "akeys(test_table.hash) AS akeys_1", True ) -- cgit v1.2.1