﻿id	summary	reporter	owner	description	type	status	component	version	severity	resolution	keywords	cc	stage	has_patch	needs_docs	needs_tests	needs_better_patch	easy	ui_ux
27079	Refactor LiveServerPort tests to not make extra calls to setUpClass() and tearDownClass()	Chris Jerdonek	Jacob Walls	"Currently, `LiveServerPort.test_port_bind()` calls `LiveServerTestCase.setUpClass()` and `LiveServerTestCase.tearDownClass()` ''twice'' (to create two live server threads -- see [https://github.com/django/django/blob/e76981b43325da60b8a7475661df6cbfa7fda37e/tests/servers/tests.py#L133 here] for the code). On the tear-down side, this has the unwanted side effect of setting `conn.allow_thread_sharing` to False before all live server threads are done with their connections.

The test should really only be calling the full `setUpClass()` and `tearDownClass()` once (but still doing the partial setup and tear-down that it needs for the purposes of its test).
"	Cleanup/optimization	closed	Testing framework	1.10	Normal	fixed			Ready for checkin	1	0	0	0	0	0
