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
Ë
Kñúh’ ãó®—dZddlZddlZddlmZddlmZddlZ    ddl
m Z ejje d¬«d„«Zd    „Zd
„Zd „Zd „Zd „Zd„Zy)a¿
Tests for the private NumPy argument parsing functionality.
They mainly exists to ensure good test coverage without having to try the
weirder cases on actual numpy functions but test them in one place.
 
The test function is defined in C to be equivalent to (errors may not always
match exactly, and could be adjusted):
 
    def func(arg1, /, arg2, *, arg3):
        i = integer(arg1)  # reproducing the 'i' parsing in Python.
        return None
éN)Úargparse_example_function)Ú"threaded_argparse_example_function)ÚIS_WASMz%wasm doesn't have support for threads)Úreasoncó(‡—tjd«Šˆfd„}td«Dcgc]}tj|¬«‘Œ}}|Dcgc]}|j    «‘Œc}|Dcgc]}|j «‘Œc}ycc}wcc}wcc}w)Nécó@•—‰j«tdd¬«y)Né)Úarg1Úarg2)ÚwaitÚ thread_func)Úbs€úRH:\Change_password\venv_build\Lib\site-packages\numpy/_core/tests/test_argparse.pyÚcall_thread_funcz9test_thread_safe_argparse_cache.<locals>.call_thread_func sø€Ø    ‰ŒÜ˜ Ö&ó)Útarget)Ú    threadingÚBarrierÚrangeÚThreadÚstartÚjoin)rÚ_ÚtasksÚtrs    @rÚtest_thread_safe_argparse_cacherssø€ä×ј!Ó€Aô'ôAFÀaÃÖ I¸1ŒY× Ñ Ð%5Ö 6Ð I€EÐ IØÖ1€Q‡WW…YӨ֐!€Q‡VV…XÔùò JùÚùÚs©BÁ B
Á*Bcóò—tjtd¬«5td«ddd«tjt«5tddz«ddd«y#1swYŒ:xYw#1swYyxYw)Nz$integer argument expected, got float©Úmatchgð?ééd)ÚpytestÚraisesÚ    TypeErrorÚfuncÚ OverflowError©rrÚtest_invalid_integersr))sb€Ü    ‰”yØ8ô
:ñä ˆRŒ÷ô
‰”}Ó    %ñÜ ˆQ‰VŒ ÷ð÷ðú÷ðúsœ A!Á    A-Á!A*Á-A6cól—tjtd¬«5t«ddd«tjtd¬«5tdd¬«ddd«tjtd¬«5tdd¬«ddd«y#1swYŒlxYw#1swYŒGxYw#1swYyxYw)    Nz&missing required positional argument 0réé)r Úarg3z,missing required argument \'arg2\' \(pos 1\)é)r-©r#r$r%r&r(rrÚtest_missing_argumentsr01s–€Ü    ‰”yØ:ô
<ñä Œ÷ô
‰”yØ:ô
<ñä !˜!Õ÷ô
‰”yØAô
Cñä ˆQQ÷ð÷ ðú÷ðú÷ðús#œ BÁ
BÁ;B*ÂBÂB'Â*B3có€—tjtd¬«5tdddd«ddd«y#1swYyxYw)Nz7takes from 2 to 3 positional arguments but 4 were givenrr+r!r
r,r/r(rrÚtest_too_many_positionalr2=s7€ä    ‰”yØKô
Mñä ˆQ1aÔ÷÷ñúóœ4´=có€—tjtd¬«5tddd¬«ddd«y#1swYyxYw)Nz4given by name \('arg2'\) and position \(position 1\)rr+r!r
)r r/r(rrÚtest_multiple_valuesr5Ds5€Ü    ‰”yØIô
Kñä ˆQ˜Õ÷÷ñúr3cóì—tjd«}tjd«}tdi|di¤Žtjt
d¬«5tdi|di¤Žddd«y#1swYyxYw)Nr Ú missing_argr
z0got an unexpected keyword argument 'missing_arg'r)r+)r!)ÚnpÚstr_r&r#r$r%)r r7s  rÚtest_string_fallbacksr:Jse€ô 7‰76‹?€DÜ—'‘'˜-Ó(€KÜшtQˆiÒÜ    ‰”yØDô
Fñ$ä Ñ#; Ð"Ò#÷$÷$ñ$ús ÁA*Á*A3có¾—tjd«}td«}tjt
«5|j |Žddd«y#1swYyxYw)Nr
iè)r8Úarangerr#r$r%Úmean)ÚarrÚargss  rÚ)test_too_many_arguments_method_forwardingr@UsH€ô )‰)A‹,€CÜ ‹;€DÜ    ‰”yÓ    !ñ؈‰$‰÷÷ñús ºAÁA)Ú__doc__rr#Únumpy._core._multiarray_testsrr&rrÚnumpyr8Ú numpy.testingrÚmarkÚskipifrr)r0r2r5r:r@r(rrú<module>rGslðñ óã õõóÝ!ð‡×ѐGÐ$KÐÓLñ    óMð    òò    òòò $ór