diff options
| author | Jannis Leidel | 2013-12-09 17:46:41 +0100 | 
|---|---|---|
| committer | Jannis Leidel | 2013-12-09 17:46:47 +0100 | 
| commit | 4e37f8bd430d30807c56372a372e570fe346c0fb (patch) | |
| tree | bb6a6f99ed98bc30c4a6074e966d46298d87d1cd /tests/settings.py | |
| parent | e75309b712537f3ee53005bf6330057c9640be21 (diff) | |
| download | django-debug-toolbar-4e37f8bd430d30807c56372a372e570fe346c0fb.tar.bz2 | |
Use django-discover-runner on older Djangos.
Diffstat (limited to 'tests/settings.py')
| -rw-r--r-- | tests/settings.py | 5 | 
1 files changed, 5 insertions, 0 deletions
| diff --git a/tests/settings.py b/tests/settings.py index 9ff9fb6..68346ff 100644 --- a/tests/settings.py +++ b/tests/settings.py @@ -1,6 +1,8 @@  """Django settings for tests."""  import os +import django +  BASE_DIR = os.path.dirname(os.path.dirname(__file__)) @@ -64,3 +66,6 @@ DEBUG_TOOLBAR_CONFIG = {      # Django's test client sets wsgi.multiprocess to True inappropriately      'RENDER_PANELS': False,  } + +if django.VERSION[:2] < (1, 6): +    TEST_RUNNER = 'discover_runner.DiscoverRunner' | 
