Backported the Django 1.6 discover runner.