Code

Opened 7 months ago

Closed 7 months ago

#21187 closed Bug (fixed)

PendingDeprecationWarning when running the test suite

Reported by: aaugustin Owned by: akaariai
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

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.

----------------------------------------------------------------------

Attachments (0)

Change History (2)

comment:1 Changed 7 months ago by akaariai

  • Owner changed from nobody to akaariai
  • Status changed from new to assigned

Will fix.

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

  • Resolution set to fixed
  • Status changed from assigned to closed

In 47e79bfcfb65c5e7bb4e4402c593ac40def6efb4:

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

The import was done from util instead of utils leading to
PendingDeprecationWarning.

Add Comment

Modify Ticket

Change Properties
<Author field>
Action
as closed
as The resolution will be set. Next status will be 'closed'
The resolution will be deleted. Next status will be 'new'
Author


E-mail address and user name can be saved in the Preferences.

 
Note: See TracTickets for help on using tickets.