summaryrefslogtreecommitdiff
path: root/django/test
diff options
context:
space:
mode:
authorChris Jerdonek <chris.jerdonek@gmail.com>2016-08-01 13:15:41 -0700
committerTim Graham <timograham@gmail.com>2016-08-01 16:15:41 -0400
commit013ee21cf8e1a4b05589c161039f244e356272ba (patch)
tree74872220a576424c00588f5efbde4fa2f663b2da /django/test
parent24123c31362b5f3783d84d133c160e9fe16805fe (diff)
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease subclassing.
Diffstat (limited to 'django/test')
-rw-r--r--django/test/testcases.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/django/test/testcases.py b/django/test/testcases.py
index eb3d63f917..2220ec7f52 100644
--- a/django/test/testcases.py
+++ b/django/test/testcases.py
@@ -1285,6 +1285,7 @@ class LiveServerTestCase(TransactionTestCase):
other thread can see the changes.
"""
host = 'localhost'
+ server_thread_class = LiveServerThread
static_handler = _StaticFilesHandler
@classproperty
@@ -1321,7 +1322,7 @@ class LiveServerTestCase(TransactionTestCase):
@classmethod
def _create_server_thread(cls, connections_override):
- return LiveServerThread(
+ return cls.server_thread_class(
cls.host,
cls.static_handler,
connections_override=connections_override,