Opened 11 years ago
Closed 11 years ago
#21774 closed Bug (fixed)
Running some test labels individually results in PendingDeprecationWarnings
Reported by: | Marc Tamlyn | Owned by: | nobody |
---|---|---|---|
Component: | Uncategorized | 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
Try python -Wall runtests.py file_uploads
This seems to be because tests/urls.py
includes urls from admin_widgets
which has models imported, which are not installed.
The easy fix would be to ensure every model in admin_widgets
and file_uploads
specifies an app_label
. The better fix would be to get rid of the global tests.urls
file in favour of TestCase.urls
, at least for these two app labels.
Change History (2)
comment:1 by , 11 years ago
comment:2 by , 11 years ago
Resolution: | → fixed |
---|---|
Status: | new → closed |
Note:
See TracTickets
for help on using tickets.
PR: https://github.com/django/django/pull/2166
This takes the route of the better fix.