Skip to content

Commit 62e7e5c

Browse files
committed
Update Django testing to use the currently supported versions.
1 parent 9686ff8 commit 62e7e5c

File tree

2 files changed

+5
-16
lines changed

2 files changed

+5
-16
lines changed

tox.ini

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
[tox]
2-
envlist = begin,py{26,27,33,34},py27-django{lts,prev,curr},end,quality
2+
envlist = begin,py{26,27,33,34},py27-django{lts,curr},end,quality
33

44
[testenv]
55
deps =
66
coverage
7-
djangolts: django==1.4.22
8-
djangoprev: django==1.6.11
9-
djangocurr: django==1.7.10
7+
djangolts: django==1.8.7
8+
djangocurr: django==1.9
109
commands =
1110
coverage run --append setup.py test
1211
coverage report --omit='.tox/*'

xmlrunner/extra/djangotestrunner.py

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -10,21 +10,11 @@
1010
"""
1111

1212
import xmlrunner
13-
import django
1413
from django.conf import settings
14+
from django.test.runner import DiscoverRunner
1515

16-
# future compatibilty with django
17-
# in django 1.6 DiscoverRunner bacame default and
18-
# DjangoTestSuiteRunner became depecated, will be removed in 1.8
19-
if django.VERSION < (1, 6):
20-
from django.test.simple import DjangoTestSuiteRunner
21-
_DjangoRunner = DjangoTestSuiteRunner
22-
else:
23-
from django.test.runner import DiscoverRunner
24-
_DjangoRunner = DiscoverRunner
2516

26-
27-
class XMLTestRunner(_DjangoRunner):
17+
class XMLTestRunner(DiscoverRunner):
2818

2919
def run_suite(self, suite, **kwargs):
3020
dummy = kwargs # unused

0 commit comments

Comments
 (0)