diff options
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/utils.py | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/django/test/utils.py b/django/test/utils.py index c394dacfd6..b9f4743a34 100644 --- a/django/test/utils.py +++ b/django/test/utils.py @@ -118,8 +118,11 @@ def restore_warnings_state(state): warnings.filters = state[:] -def get_runner(settings): - test_path = settings.TEST_RUNNER.split('.') +def get_runner(settings, test_runner_class=None): + if not test_runner_class: + test_runner_class = settings.TEST_RUNNER + + test_path = test_runner_class.split('.') # Allow for Python 2.5 relative paths if len(test_path) > 1: test_module_name = '.'.join(test_path[:-1]) |
