ó 2ÄČ[c@`svdZddlmZmZmZddlZddlZddlmZdgZ d„Z de fd„ƒYZ dS(s,Provide class for testing in French locale i(tdivisiontabsolute_importtprint_functionN(tSkipTesttCommaDecimalPointLocalecC`s³tjdkrdg}nddddg}tjtjƒ}d}zJxC|D];}ytjtj|ƒ|}PWqOtjk r‰qOXqOWWdtjtjd|ƒX||fS( s:See if platform has a decimal point as comma locale. Find a locale that uses a comma instead of a period as the decimal point. Returns ------- old_locale: str Locale when the function was called. new_locale: {str, None) First French locale found, None if none found. twin32tFRENCHtfr_FRs fr_FR.UTF-8tfi_FIs fi_FI.UTF-8Ntlocale(tsystplatformR t getlocalet LC_NUMERICtNonet setlocaletError(tlocalest old_localet new_localetloc((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pytfind_comma_decimal_point_locales   cB`sAeZdZeƒ\ZZd„Zd„Zd„Zd„Z RS(sā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, it raises SkipTest in both cases. .. versionadded:: 1.15.0 cC`s;|jdkrtdƒ‚ntjtjd|jƒdS(NsNo French locale availableR (t tst_localeRRR RR (tself((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pytsetup>scC`stjtjd|jƒdS(NR (R RR t cur_locale(R((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pytteardownCscC`s;|jdkrtdƒ‚ntjtjd|jƒdS(NsNo French locale availableR (RRRR RR (R((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pyt __enter__FscC`stjtjd|jƒdS(NR (R RR R(Rttypetvaluet traceback((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pyt__exit__Ks( t__name__t __module__t__doc__RRRRRRR(((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pyR0s     ( R"t __future__RRRR R t numpy.testingRt__ALL__RtobjectR(((s8/tmp/pip-build-fiC0ax/numpy/numpy/core/tests/_locales.pyts    "