Make a brittle i18n test more reliable
|Reported by:||julien||Owned by:||nobody|
|Cc:||Triage Stage:||Ready for checkin|
|Has patch:||yes||Needs documentation:||no|
|Needs tests:||no||Patch needs improvement:||no|
While working on #18393, I've noticed that if the try/except clause was removed from the blocktrans tag's code (which was introduced in https://github.com/django/django/commit/16bb9c594c), then the test i18n.TranslationTests.test_bad_placeholder would correctly fail if run on its own, however there would be no failure if running the entire i18n suite. I'm not sure why that is at this stage.
While nothing is broken per-se right now, the test is too brittle and may not catch regressions when the entire test suite is run. So the test should be made more reliable.