Fixed #20349 -- Don't load django.test when not testing.