tests do not change language back after fail
|Reported by:||andrey@…||Owned by:||claudep|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
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.
Change History (6)
Changed 4 years ago by andrey@…
comment:1 Changed 4 years ago by claudep
- Cc claudep removed
- Needs documentation unset
- Needs tests unset
- Owner changed from nobody to claudep
- Patch needs improvement unset
- Triage Stage changed from Unreviewed to Accepted