Opened 11 years ago

Closed 11 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: dev
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

Description

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/tests.py", line 621, in test_cursor_contextmanager
    from django.db.backends.util import CursorWrapper
  File "/Users/myk/Documents/dev/django/django/db/backends/util.py", 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 by Anssi Kääriäinen, 11 years ago

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

Will fix.

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

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
PendingDeprecationWarning.

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