PyDocs

Nav

Development Tools

run_with_locale

test.support

decorator
  • @run_with_locale(catstr, *locales)
A decorator for running a function in a different locale, correctly resetting it after it has finished. catstr is the locale category as a string (for example "LC_ALL"). The locales passed will be tried sequentially, and the first valid locale will be used.
0 Examples
No examples for test.support/run_with_locale.
See Also
No see-alsos for test.support/run_with_locale
0 Notes
No notes for run_with_locale