Test suite raises deprecation warning for URLConf using admin.site.root.
|Reported by:||Cliff Dyer||Owned by:||Cliff Dyer|
|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/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.