Lichen

Annotated tests/locale.py

601:adcdaeb19307
2017-02-19 Paul Boddie Fixed the context test and set operation to replace the local context with any applicable attribute context. Added a test of method rebinding that requires this fix. method-wrapper-for-context
paul@375 1
import locale
paul@375 2
paul@375 3
print locale.getlocale()
paul@375 4
print locale.initlocale()
paul@375 5
print locale.getlocale()
paul@375 6
print locale.setlocale(locale.LC_CTYPE, "en_GB.UTF-8")
paul@375 7
print locale.getlocale()