B <ÓFdx ã@s~dZddlmZmZmZddlZddlmZm Z m Z ddl m Z ddl mZGdd„deƒZGd d „d eƒZed krze ƒdS) z'Test deprecation and future warnings. é)ÚdivisionÚabsolute_importÚprint_functionN)ÚTestCaseÚrun_module_suiteÚ assert_warns)Ú assert_equal)ÚMaskedArrayFutureWarningc@s0eZdZdZdd„Zdd„Zdd„Zdd „Zd S) Ú TestArgsortz gh-8701 cCs’t d¡ |¡}||ƒt dddg¡ |¡}||ƒt ddgddgg¡ |¡}ttjjj||ƒ}t|||ddƒ||dd||dddS)Néééé)Úaxiséÿÿÿÿ)ÚnpÚarrayZviewrÚmaZcorer r)ÚselfÚargsortÚclsZarr_0dZarr_1dZarr_2dÚresult©rúS/opt/alt/python37/lib64/python3.7/site-packages/numpy/ma/tests/test_deprecations.pyÚ _test_base s zTestArgsort._test_basecCs| tjjtj¡S)N)rrrrZndarray)rrrrÚtest_function_ndarraysz!TestArgsort.test_function_ndarraycCs| tjjtjj¡S)N)rrrrÚ MaskedArray)rrrrÚtest_function_maskedarray!sz%TestArgsort.test_function_maskedarraycCs| tjjjtjj¡S)N)rrrrr)rrrrÚ test_method$szTestArgsort.test_methodN)Ú__name__Ú __module__Ú __qualname__Ú__doc__rrrrrrrrr s r c@s$eZdZdd„Zdd„Zdd„ZdS)ÚTestMinimumMaximumcCs tttjjtj ddg¡ƒdS)Nr r )rÚDeprecationWarningrrÚminimumr)rrrrÚ test_minimum)szTestMinimumMaximum.test_minimumcCs tttjjtj ddg¡ƒdS)Nr r )rr$rrÚmaximumr)rrrrÚ test_maximum,szTestMinimumMaximum.test_maximumcCsÄtj d¡}| dd¡}tjjj}tjjj}tt||ƒ}t |||ddƒtt||ƒ}t |||ddƒ||ƒ}t |||ddƒt |||ddƒ||ƒ}t |||ddƒt |||ddƒdS)Nér r )rr) rrZarangeZreshaper%Úreducer'rr r)rZdata1dZdata2dZma_minZma_maxrrrrÚtest_axis_default/s      z$TestMinimumMaximum.test_axis_defaultN)rr r!r&r(r+rrrrr#(sr#Ú__main__)r"Z __future__rrrZnumpyrZ numpy.testingrrrZnumpy.ma.testutilsrZ numpy.ma.corer r r#rrrrrÚs  !