Opened 6 years ago

Closed 6 years ago

#21187 closed Bug (fixed)

PendingDeprecationWarning when running the test suite

Reported by: Aymeric Augustin Owned by: Anssi Kääriäinen
Component: Database layer (models, ORM) Version: master
Severity: Normal Keywords:
Cc: Triage Stage: Accepted
Has patch: no Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


Here's the output when running the test suite under -Werror:

ERROR: test_cursor_contextmanager (backends.tests.BackendTestCase)
Traceback (most recent call last):
  File "/Users/myk/Documents/dev/django/tests/backends/", line 621, in test_cursor_contextmanager
    from django.db.backends.util import CursorWrapper
  File "/Users/myk/Documents/dev/django/django/db/backends/", line 5, in <module>
    "Use django.db.backends.utils instead.", PendingDeprecationWarning)
PendingDeprecationWarning: The django.db.backends.util module has been renamed. Use django.db.backends.utils instead.


Change History (2)

comment:1 Changed 6 years ago by Anssi Kääriäinen

Owner: changed from nobody to Anssi Kääriäinen
Status: newassigned

Will fix.

comment:2 Changed 6 years ago by Anssi Kääriäinen <akaariai@…>

Resolution: fixed
Status: assignedclosed

In 47e79bfcfb65c5e7bb4e4402c593ac40def6efb4:

Fixed #21187 -- Import CursorWrapper from django.db.backend.utils

The import was done from util instead of utils leading to

Note: See TracTickets for help on using tickets.
Back to Top