#28091: Hiding 'cursor does not exist' error doesn't work -------------------------------------+------------------------------------- Reporter: Claude Paroz | Owner: François | Freitag Type: Bug | Status: assigned Component: Database layer | Version: 1.11 (models, ORM) | Severity: Release blocker | Resolution: Keywords: | Triage Stage: Accepted Has patch: 0 | Needs documentation: 0 Needs tests: 0 | Patch needs improvement: 0 Easy pickings: 0 | UI/UX: 0 -------------------------------------+-------------------------------------
Comment (by Claude Paroz): I'm getting that: {{{ ====================================================================== ERROR: test_cursor_close_failure_does_not_mask_original_exception (backends.tests.BackendTestCase) ---------------------------------------------------------------------- Traceback (most recent call last): File "/home/claude/checkouts/django-git/tests/backends/tests.py", line 695, in test_cursor_close_failure_does_not_mask_original_exception mock_cursor.execute = mock.MagicMock(side_effect=raise_original_exception) AttributeError: 'psycopg2.extensions.cursor' object attribute 'execute' is read-only }}} -- Ticket URL: <https://code.djangoproject.com/ticket/28091#comment:4> Django <https://code.djangoproject.com/> The Web framework for perfectionists with deadlines. -- You received this message because you are subscribed to the Google Groups "Django updates" group. To unsubscribe from this group and stop receiving emails from it, send an email to django-updates+unsubscr...@googlegroups.com. To post to this group, send email to django-updates@googlegroups.com. To view this discussion on the web visit https://groups.google.com/d/msgid/django-updates/065.bbedbd4127e996d73c4571871303fbea%40djangoproject.com. For more options, visit https://groups.google.com/d/optout.