MAINT: Make assert_array_compare more generic.
MAINT: Make assert_array_compare more generic.

Use np.all instead of the *.all method to be a bit more robust against
bad subclasses of ndarray that may change the behavior of the method.

Closes #11743.

simongibbons/numpy,numpy/numpy,simongibbons/numpy,pizzathief/numpy,jorisvandenbossche/numpy,jorisvandenbossche/numpy,MSeifert04/numpy,shoyer/numpy,endolith/numpy,pbrod/numpy,madphysicist/numpy,jorisvandenbossche/numpy,madphysicist/numpy,mattip/numpy,shoyer/numpy,pdebuyl/numpy,WarrenWeckesser/numpy,madphysicist/numpy,jakirkham/numpy,simongibbons/numpy,pbrod/numpy,jorisvandenbossche/numpy,abalkin/numpy,MSeifert04/numpy,charris/numpy,mhvk/numpy,gfyoung/numpy,pizzathief/numpy,pdebuyl/numpy,anntzer/numpy,abalkin/numpy,rgommers/numpy,jakirkham/numpy,ahaldane/numpy,endolith/numpy,rgommers/numpy,madphysicist/numpy,WarrenWeckesser/numpy,numpy/numpy,pdebuyl/numpy,seberg/numpy,MSeifert04/numpy,mhvk/numpy,pbrod/numpy,simongibbons/numpy,mhvk/numpy,jorisvandenbossche/numpy,charris/numpy,pbrod/numpy,shoyer/numpy,ahaldane/numpy,grlee77/numpy,numpy/numpy,WarrenWeckesser/numpy,endolith/numpy,gfyoung/numpy,pdebuyl/numpy,gfyoung/numpy,anntzer/numpy,rgommers/numpy,mattip/numpy,MSeifert04/numpy,abalkin/numpy,seberg/numpy,ahaldane/numpy,mhvk/numpy,pbrod/numpy,jakirkham/numpy,pizzathief/numpy,mattip/numpy,anntzer/numpy,numpy/numpy,WarrenWeckesser/numpy,simongibbons/numpy,ahaldane/numpy,jakirkham/numpy,shoyer/numpy,charris/numpy,MSeifert04/numpy,mhvk/numpy,charris/numpy,jakirkham/numpy,ahaldane/numpy,endolith/numpy,pizzathief/numpy,seberg/numpy,grlee77/numpy,anntzer/numpy,grlee77/numpy,mattip/numpy,shoyer/numpy,grlee77/numpy,pizzathief/numpy,madphysicist/numpy,WarrenWeckesser/numpy,rgommers/numpy,grlee77/numpy,seberg/numpy