Skip to content

Commit 4b77963

Browse files
committed
Remove deprecated testcases.DocTestRunner
1 parent f48394d commit 4b77963

2 files changed

Lines changed: 0 additions & 9 deletions

File tree

.travis.yml

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,4 @@ install:
2020
# command to run tests
2121
script:
2222
- python setup.py test
23-
- cd sample_project
2423
- python manage.py test codespeed

codespeed/tests/__init__.py

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,6 @@
44
import unittest
55

66
from django.utils.importlib import import_module
7-
from django.test._doctest import DocTestSuite
8-
from django.test.testcases import DocTestRunner
9-
from django.test.simple import doctestOutputChecker
107

118
loadTestsFromModule = unittest.defaultTestLoader.loadTestsFromModule
129

@@ -68,11 +65,6 @@ def get_suite(*names, **kwargs):
6865
suite.addTest(module.suite())
6966
else: # otherwise build the test suite ourselves.
7067
suite.addTest(loadTestsFromModule(module))
71-
try:
72-
suite.addTest(DocTestSuite(module, runner=DocTestRunner,
73-
checker=doctestOutputChecker))
74-
except ValueError: # No doc tests
75-
pass
7668
return suite
7769

7870
suite = lambda: get_suite(__name__)

0 commit comments

Comments
 (0)