test: document orphan-locale recovery for _temp_locale helper

This commit is contained in:
Igor Lins e Silva
2026-04-15 08:54:23 -03:00
parent b214aced90
commit c722c91e2a
+5
View File
@@ -392,6 +392,11 @@ def _temp_locale(locale_code: str, entity_section: dict):
Cleans up the file and clears every cache that depends on locale data on exit, Cleans up the file and clears every cache that depends on locale data on exit,
even if the test fails or the entity section is invalid. even if the test fails or the entity section is invalid.
Note: writes into the real mempalace/i18n/ directory. If a test process is
SIGKILLed mid-test the orphan zz-test-*.json file will break test_all_languages_load
on the next run (the fixture lacks the required terms/cli/aaak sections).
Recover with `rm mempalace/i18n/zz-test-*.json`.
""" """
from mempalace import i18n from mempalace import i18n
from mempalace import entity_detector from mempalace import entity_detector