Test suite raises deprecation warning for URLConf using admin.site.root.
|Reported by:||jcd||Owned by:||jcd|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
Part of the test suite still uses admin.site.root, and is raising DeprecationWarnings during the running of the test suite.
See, for instance, django/tests/regressiontests/generic_inline_admin/urls.py and django/tests/regressiontests/admin_widgets/urls2.py. I suspect neither of these are actively testing admin.site.root, so they should be updated to use the new method. If the old method needs to be tested, (and maybe it already is) the test should handle the DeprecationWarning, rather than letting it fall through to the test runner.
Change History (4)
Changed 7 years ago by Travis Cline <travis.cline@…>
comment:1 Changed 7 years ago by Travis Cline <travis.cline@…>
- Has patch set
- Needs documentation unset
- Needs tests unset
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted