https://github.com/SlashRoot/django/blob/master/django/core/management/commands/test.py#L52 This code relies on the get_runner() function from django.test.utils... https://github.com/SlashRoot/django/blob/master/django/test/utils.py#L127 which will probably be a more difficult piece of code to modify.