﻿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
29658	Use a context manager to unregister model field lookups in tests	Mads Jensen	Srinivas Reddy Thatiparthy	"There are some places in the test suite that follow this pattern:

{{{
try:
   CharField.register_lookup(Length)
   # some test code
finally:
   CharField._unregister_lookup(Length)
}}}

It'd be better to use a context manager (`addCleanup()` was originally proposed) to handle this stuff."	Cleanup/optimization	assigned	Core (Other)	dev	Normal				Ready for checkin	1	0	0	0	1	0
