Opened 11 years ago

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

Description

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, 11 years ago

Cc: eromijn@… added
Has patch: set

PR in https://github.com/django/django/pull/1693/files

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

Version 0, edited 11 years ago by Sasha Romijn (next)

comment:2 by Tim Graham, 11 years ago

Resolution: duplicate
Status: newclosed

Duplicate of #21187

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