aboutsummaryrefslogtreecommitdiffstats
path: root/rest_framework/runtests/runtests.py
diff options
context:
space:
mode:
authorTom Christie2013-06-02 13:11:49 -0700
committerTom Christie2013-06-02 13:11:49 -0700
commit1bb5fb8e4a88375f7f51d20175515bfa6e926f3c (patch)
tree62c574fbbb208c0606ed24d792931681f3b13806 /rest_framework/runtests/runtests.py
parenta3796f430b96abe71f2f99f566d9f7655e89f268 (diff)
parent9d4fc3226e5e730ac29528a7e84bcdbb7d2e1f44 (diff)
downloaddjango-rest-framework-1bb5fb8e4a88375f7f51d20175515bfa6e926f3c.tar.bz2
Merge pull request #895 from linovia/django1.6a1
Added Django 1.6a1 to the test matrix.
Diffstat (limited to 'rest_framework/runtests/runtests.py')
-rwxr-xr-xrest_framework/runtests/runtests.py7
1 files changed, 6 insertions, 1 deletions
diff --git a/rest_framework/runtests/runtests.py b/rest_framework/runtests/runtests.py
index 4a333fb3..da36d23f 100755
--- a/rest_framework/runtests/runtests.py
+++ b/rest_framework/runtests/runtests.py
@@ -10,6 +10,7 @@ import sys
sys.path.append(os.path.join(os.path.dirname(__file__), "../.."))
os.environ['DJANGO_SETTINGS_MODULE'] = 'rest_framework.runtests.settings'
+import django
from django.conf import settings
from django.test.utils import get_runner
@@ -35,7 +36,11 @@ def main():
else:
print(usage())
sys.exit(1)
- failures = test_runner.run_tests(['tests' + test_case])
+ test_module_name = 'rest_framework.tests'
+ if django.VERSION[0] == 1 and django.VERSION[1] < 6:
+ test_module_name = 'tests'
+
+ failures = test_runner.run_tests([test_module_name + test_case])
sys.exit(failures)