Opened 10 years ago

Closed 10 years ago

#21199 closed Cleanup/optimization (duplicate)

Backends tests trigger PendingDeprecationWarning

Reported by: Sasha Romijn Owned by: nobody
Component: Database layer (models, ORM) Version: dev
Severity: Normal Keywords:
Cc: eromijn@… Triage Stage: Unreviewed
Has patch: yes Needs documentation: no
Needs tests: no Patch needs improvement: no
Easy pickings: no UI/UX: no


The backends tests import from django.db.backends.util, which has been deprecated. When running the test suite with -Wall, this results in a PendingDeprecationWarning being issued. The test should import from django.db.backends.utils - it's drop-in replacement.

Change History (2)

comment:1 by Sasha Romijn, 10 years ago

Cc: eromijn@… added
Has patch: set

PR in

Other than changing the import, I noticed it was imported in-line in both places - I moved this to the import at the top.

Last edited 10 years ago by Sasha Romijn (previous) (diff)

comment:2 by Tim Graham, 10 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #21187

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