#28941 closed Bug (fixed)
testserver crashes due to runserver shutdown_message option
| Reported by: | peter-rci | Owned by: | Tim Graham |
|---|---|---|---|
| Component: | Testing framework | Version: | 2.0 |
| Severity: | Release blocker | Keywords: | testserver |
| Cc: | Triage Stage: | Accepted | |
| Has patch: | yes | Needs documentation: | no |
| Needs tests: | no | Patch needs improvement: | no |
| Easy pickings: | yes | UI/UX: | no |
Description
I believe the testserver command cannot be used at all in Django 2.0. Here are lines 47-54 from testserver.py:
call_command(
'runserver',
addrport=options['addrport'],
shutdown_message=shutdown_message,
use_reloader=False,
use_ipv6=options['use_ipv6'],
use_threading=use_threading
)
Removing the shutdown_message=shutdown_message line fixes the problem.
Change History (4)
comment:1 by , 8 years ago
| Owner: | changed from to |
|---|---|
| Severity: | Normal → Release blocker |
| Status: | new → assigned |
| Summary: | testserver invokes runserver shutdown_message option, which does not exist → testserver crashes due to runserver shutdown_message option |
| Triage Stage: | Unreviewed → Accepted |
comment:2 by , 8 years ago
| Has patch: | set |
|---|
Note:
See TracTickets
for help on using tickets.
PR