class documentation

class CommaDecimalPointLocale:

Known subclasses: numpy.core.tests.test_longdouble.TestCommaDecimalPointLocale, numpy.core.tests.test_print.TestCommaDecimalPointLocale

View In Hierarchy

Sets LC_NUMERIC to a locale with comma as decimal point.

Classes derived from this class have setup and teardown methods that run tests with locale.LC_NUMERIC set to a locale where commas (',') are used as the decimal point instead of periods ('.'). On exit the locale is restored to the initial locale. It also serves as context manager with the same effect. If no such locale is available, the test is skipped.

New in version 1.15.0.
Method __enter__ Undocumented
Method __exit__ Undocumented
Method setup Undocumented
Method teardown Undocumented
Class Variable cur​_locale Undocumented
Class Variable tst​_locale Undocumented
def __enter__(self):

Undocumented

def __exit__(self, type, value, traceback):

Undocumented

def setup(self):

Undocumented

def teardown(self):

Undocumented

cur_locale =

Undocumented

tst_locale =

Undocumented