diff options
author | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-18 10:38:02 -0500 |
---|---|---|
committer | Mike Bayer <mike_mp@zzzcomputing.com> | 2012-11-18 10:38:02 -0500 |
commit | 1e29a74bd62c6c872819388e430901c35f84f07c (patch) | |
tree | 98fedf95477a04dd2adf570aba965e248935570d /test/dialect/test_postgresql.py | |
parent | 0f56aa56c5de13ab14bd8e8d03b6e785c39a5bf0 (diff) | |
download | sqlalchemy-1e29a74bd62c6c872819388e430901c35f84f07c.tar.gz |
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__()``.
Diffstat (limited to 'test/dialect/test_postgresql.py')
-rw-r--r-- | test/dialect/test_postgresql.py | 3 |
1 files changed, 2 insertions, 1 deletions
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 ) |