bg dZddlZddlZddlmZddlmZddlm Z ddl Z ddl Z GddZ Gdd Z Gd d ZdS) z'Test deprecation and future warnings. N) assert_warns) assert_equal)MaskedArrayFutureWarningc*eZdZdZdZdZdZdZdS) TestArgsortz gh-8701 ctjd|}||tjgd|}||tjddgddgg|}ttjjj||}t|||d||d||ddS)N)r r r axis)nparrayviewrmacorerr)selfargsortclsarr_0darr_1darr_2dresults s/builddir/build/BUILD/cloudlinux-venv-1.0.7/venv/lib64/python3.11/site-packages/numpy/ma/tests/test_deprecations.py _test_basezTestArgsort._test_bases!!!#&&)))$$))#..Aq6Aq6*++0055 EJ /&BBVWWV$777888 T""""R      c`|tjjtjSN)rrrrndarrayrs rtest_function_ndarrayz!TestArgsort.test_function_ndarraysru}bj999rcj|tjjtjjSr )rrrr MaskedArrayr"s rtest_function_maskedarrayz%TestArgsort.test_function_maskedarray"sru}be.?@@@rct|tjjjtjjSr )rrrr%rr"s r test_methodzTestArgsort.test_method%s#ru08"%:KLLLrN)__name__ __module__ __qualname____doc__rr#r&r(rrrr s]O!!!":::AAAMMMMMrrceZdZdZdS)TestMinimumMaximumctjd}|dd}tjjj}tjjj}tt||}t|||dtt||}t|||d||}t|||dt|||d||}t|||dt|||ddS)Nr r r r) rrarangereshapeminimumreducemaximumrrr)rdata1ddata2dma_minma_maxrs rtest_axis_defaultz$TestMinimumMaximum.test_axis_default+sBa1%%%%6GGVVVF6667776GGVVVF666777VVVF666777VVVF333444VVVF666777VVVF33344444rN)r)r*r+r;r-rrr/r/)s#55555rr/ceZdZdZdS)TestFromtextfilectjtjd}t jt 5tjj |d}ddddS#1swxYwYdS)Nz A,B,C,D 'string 1';1;1.0;'mixed column' 'string 2';2;2.0; 'string 3';3;3.0;123 'string 4';4;4.0;3.14 ;) delimitor) ioStringIOtextwrapdedentpytestwarnsDeprecationWarningrrmrecords fromtextfile)rtextfilers rtest_fromtextfile_delimitorz,TestFromtextfile.test_fromtextfile_delimitorFs;x     \, - - J JU^00S0IIF J J J J J J J J J J J J J J J J J Js'A44A8;A8N)r)r*r+rKr-rrr=r=Es(JJJJJrr=)r,rEnumpyr numpy.testingrnumpy.ma.testutilsr numpy.ma.corerrArCrr/r=r-rrrPs &&&&&&++++++222222 MMMMMMMM:555555558JJJJJJJJJJr