1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
U
O±dèã@s<dZddlZddlZddlZdgZdd„ZGdd„dƒZdS)z,Provide class for testing in French locale
 
éNÚCommaDecimalPointLocalec
CsŒtjdkrdg}n ddddg}t tj¡}d}zB|D]8}zt tj|¡|}WqnWq4tjk
rjYq4Xq4W5tjtj|dX||fS)    a: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.
 
    Úwin32ZFRENCHÚfr_FRz fr_FR.UTF-8Úfi_FIz fi_FI.UTF-8N©Úlocale)ÚsysÚplatformrÚ    getlocaleÚ
LC_NUMERICÚ    setlocaleÚError)ZlocalesZ
old_localeZ
new_localeÚloc©rúPd:\z\workplace\vscode\pyvenv\venv\Lib\site-packages\numpy/core/tests/_locales.pyÚfind_comma_decimal_point_locale s
 
 rc@s:eZdZdZeƒ\ZZdd„Zdd„Zdd„Z    dd    „Z
d
S) raÕ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.
 
    .. versionadded:: 1.15.0
 
    cCs*|jdkrt d¡tjtj|jddS©NzNo French locale availabler©Ú
tst_localeÚpytestÚskiprr r ©ÚselfrrrÚ setup_method<s
 
z$CommaDecimalPointLocale.setup_methodcCstjtj|jddS©Nr©rr r Ú
cur_localerrrrÚteardown_methodAsz'CommaDecimalPointLocale.teardown_methodcCs*|jdkrt d¡tjtj|jddSrrrrrrÚ    __enter__Ds
 
z!CommaDecimalPointLocale.__enter__cCstjtj|jddSrr)rÚtypeÚvalueÚ    tracebackrrrÚ__exit__Isz CommaDecimalPointLocale.__exit__N) Ú__name__Ú
__module__Ú __qualname__Ú__doc__rrrrrrr"rrrrr.s 
)r&rrrZ__ALL__rrrrrrÚ<module>s "