{{{#!python
@classmethod
def _create_server_thread(cls, connections_override):
return LiveServerThread(
cls.host,
cls.static_handler,
connections_override=connections_override,
)
}}}
An easy solution would be to add a
`LiveServerTestCase.server_thread_class` class attribute, similar to how
other classes are handled throughout the test framework code to allow
easier subclassing.
--
Ticket URL: <https://code.djangoproject.com/ticket/26976>
Django <https://code.djangoproject.com/>
The Web framework for perfectionists with deadlines.
* needs_better_patch: => 0
* component: Uncategorized => Testing framework
* needs_tests: => 0
* easy: 0 => 1
* needs_docs: => 0
* type: Uncategorized => Cleanup/optimization
* stage: Unreviewed => Accepted
Comment:
I suppose no tests or docs are needed for that.
--
Ticket URL: <https://code.djangoproject.com/ticket/26976#comment:1>
* owner: nobody => cjerdonek
* status: new => assigned
--
Ticket URL: <https://code.djangoproject.com/ticket/26976#comment:2>
Comment (by cjerdonek):
I posted a pull request [https://github.com/django/django/pull/6998 here].
I also ran the following test command to make sure it works (and confirmed
that some of these tests fail if the change was made incorrectly):
{{{
$ ./runtests.py --parallel 1 servers.tests
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26976#comment:3>
* has_patch: 0 => 1
--
Ticket URL: <https://code.djangoproject.com/ticket/26976#comment:4>
* status: assigned => closed
* resolution: => fixed
Comment:
In [changeset:"013ee21cf8e1a4b05589c161039f244e356272ba" 013ee21]:
{{{
#!CommitTicketReference repository=""
revision="013ee21cf8e1a4b05589c161039f244e356272ba"
Fixed #26976 -- Added LiveServerTestCase.server_thread_class to ease
subclassing.
}}}
--
Ticket URL: <https://code.djangoproject.com/ticket/26976#comment:5>