Test suite raises deprecation warning for URLConf using admin.site.root.
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.
Attached a patch that updates the urlconfs, not sure if there's value in testing .root