﻿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
17945	tests do not change language back after fail, changing template loaders to default before testing	andrey@…	nobody	"Currently if django management command have error, it calls sys.exit() and after that changes language to previous.

If I run command it is ok – no code executes after sys.exit, but ChangepasswordManagementCommandTestCase catches SystemExit exception and continues execution. And all tests after it have incorrect settings. Solution is to use finally to fix this code.

Also it is possible now to use jinja2 template loaders, which is not compatible with django. django.contrib.auth tests use django templates and application's default template loader. Some tests dies.

Attached patch revers language even if system.exit called and uses django's default template loaders for tests"	Bug	closed	contrib.auth	1.3	Normal	invalid			Unreviewed	0	0	0	1	0	0
