#12759 closed (fixed)
raw_query tests fail with psycopg1 backend
Reported by: | Karen Tracey | Owned by: | nobody |
---|---|---|---|
Component: | Database layer (models, ORM) | Version: | dev |
Severity: | Keywords: | ||
Cc: | Triage Stage: | Accepted | |
Has patch: | no | Needs documentation: | no |
Needs tests: | no | Patch needs improvement: | no |
Easy pickings: | no | UI/UX: | no |
Description
Failure is:
====================================================================== ERROR: testAnnotations (modeltests.raw_query.tests.RawQueryTests) ---------------------------------------------------------------------- Traceback (most recent call last): File "D:\u\kmt\django\trunk\tests\modeltests\raw_query\tests.py", line 160, in testAnnotations self.assertSuccessfulRawQuery(Author, query, authors, expected_annotations) File "D:\u\kmt\django\trunk\tests\modeltests\raw_query\tests.py", line 13, in assertSuccessfulRawQuery results = list(model.objects.raw(query, params=params, translations=translations)) File "d:\u\kmt\django\trunk\django\db\models\query.py", line 1331, in __iter__ for row in self.query: File "d:\u\kmt\django\trunk\django\db\models\sql\query.py", line 58, in __iter__ return iter(self.cursor) File "d:\u\kmt\django\trunk\django\db\backends\postgresql\base.py", line 79, in __iter__ return iter(self.cursor) TypeError: 'cursor' object is not iterable ---------------------------------------------------------------------- Ran 152 tests in 40.608s FAILED (errors=1)
(Thhis was with --failfast
specified so tests stopped after first failure.)
Change History (4)
comment:1 by , 15 years ago
Triage Stage: | Unreviewed → Accepted |
---|
comment:2 by , 15 years ago
comment:3 by , 15 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
Just for the record, the psycopg cursor does not implement any 'dunder' (double-underscore) methods...