diff options
| author | Chris Jerdonek <chris.jerdonek@gmail.com> | 2016-08-01 13:15:41 -0700 |
|---|---|---|
| committer | Tim Graham <timograham@gmail.com> | 2016-08-01 16:15:41 -0400 |
| commit | 013ee21cf8e1a4b05589c161039f244e356272ba (patch) | |
| tree | 74872220a576424c00588f5efbde4fa2f663b2da /django/test | |
| parent | 24123c31362b5f3783d84d133c160e9fe16805fe (diff) | |
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease subclassing.
Diffstat (limited to 'django/test')
| -rw-r--r-- | django/test/testcases.py | 3 |
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, |
