Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 3 additions & 5 deletions tests/utils/stl/test/features.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,13 +36,11 @@ def getDefaultFeatures(config, litConfig):
'ru_RU.UTF-8': ['ru_RU.UTF-8', 'ru_RU.utf8', 'Russian_Russia.1251'],
'zh_CN.UTF-8': ['zh_CN.UTF-8', 'zh_CN.utf8', 'Chinese_China.936'],
'fr_CA.ISO8859-1': ['fr_CA.ISO8859-1', 'French_Canada.1252'],
'cs_CZ.ISO8859-2': ['cs_CZ.ISO8859-2', 'Czech_Czech Republic.1250']
'cs_CZ.ISO8859-2': ['cs_CZ.ISO8859-2', 'Czech_Czechia.1250']
}
for loc, alts in locales.items():
# Note: Using alts directly in the lambda body here will bind it to the value at the
# end of the loop. Assigning it to a default argument works around this issue.
DEFAULT_FEATURES.append(Feature(name='locale.{}'.format(loc),
when=lambda cfg, alts=alts: any(hasLocale(alt) for alt in alts)))
if any(hasLocale(alt) for alt in alts):
DEFAULT_FEATURES.append(Feature(name=f'locale.{loc}'))
env_var = 'STL_EDG_DROP'
litConfig.edg_drop = None
if env_var in os.environ and os.environ[env_var] is not None:
Expand Down