Opened 12 years ago
Closed 12 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)
Note:
See TracTickets
for help on using tickets.
PR in https://github.com/django/django/pull/1693
Other than changing the import, I noticed it was imported in-line in both places - I moved this to the import at the top.