Reraise exception on failure to read mat file.
Reraise exception on failure to read mat file.

When loadmat cannot even open the requested file, rethrow the exception
raised by (the first) open() (which could be FileNotFoundError or
PermissionError) rather than wrap it in OSError.

Fixes #3700.

woodscn/scipy,behzadnouri/scipy,sonnyhu/scipy,larsmans/scipy,witcxc/scipy,mtrbean/scipy,mhogg/scipy,jakevdp/scipy,nmayorov/scipy,mhogg/scipy,Newman101/scipy,andyfaff/scipy,hainm/scipy,befelix/scipy,WillieMaddox/scipy,vigna/scipy,andim/scipy,chatcannon/scipy,sauliusl/scipy,argriffing/scipy,tylerjereddy/scipy,WarrenWeckesser/scipy,andyfaff/scipy,lukauskas/scipy,pbrod/scipy,newemailjdm/scipy,arokem/scipy,kleskjr/scipy,jsilter/scipy,apbard/scipy,trankmichael/scipy,aarchiba/scipy,mingwpy/scipy,mingwpy/scipy,minhlongdo/scipy,raoulbq/scipy,rmcgibbo/scipy,aeklant/scipy,mortada/scipy,mgaitan/scipy,gef756/scipy,e-q/scipy,vberaudi/scipy,niknow/scipy,fernand/scipy,sriki18/scipy,vanpact/scipy,pschella/scipy,aarchiba/scipy,Kamp9/scipy,futurulus/scipy,raoulbq/scipy,mhogg/scipy,ilayn/scipy,woodscn/scipy,andim/scipy,piyush0609/scipy,Gillu13/scipy,njwilson23/scipy,pschella/scipy,cpaulik/scipy,jjhelmus/scipy,nonhermitian/scipy,WillieMaddox/scipy,argriffing/scipy,zxsted/scipy,kleskjr/scipy,nvoron23/scipy,mtrbean/scipy,gfyoung/scipy,vigna/scipy,josephcslater/scipy,pnedunuri/scipy,gertingold/scipy,vberaudi/scipy,person142/scipy,nmayorov/scipy,richardotis/scipy,petebachant/scipy,rgommers/scipy,niknow/scipy,andyfaff/scipy,zxsted/scipy,ortylp/scipy,bkendzior/scipy,kalvdans/scipy,mikebenfield/scipy,matthew-brett/scipy,niknow/scipy,haudren/scipy,lhilt/scipy,njwilson23/scipy,niknow/scipy,zaxliu/scipy,mdhaber/scipy,ilayn/scipy,mortada/scipy,zerothi/scipy,argriffing/scipy,surhudm/scipy,minhlongdo/scipy,ndchorley/scipy,jseabold/scipy,befelix/scipy,anielsen001/scipy,mingwpy/scipy,petebachant/scipy,mingwpy/scipy,jseabold/scipy,lhilt/scipy,rmcgibbo/scipy,haudren/scipy,gertingold/scipy,zxsted/scipy,rgommers/scipy,person142/scipy,newemailjdm/scipy,nmayorov/scipy,sonnyhu/scipy,giorgiop/scipy,ales-erjavec/scipy,rmcgibbo/scipy,ilayn/scipy,larsmans/scipy,mortonjt/scipy,gef756/scipy,anielsen001/scipy,cpaulik/scipy,aman-iitj/scipy,aarchiba/scipy,larsmans/scipy,mtrbean/scipy,maciejkula/scipy,fernand/scipy,giorgiop/scipy,jseabold/scipy,futurulus/scipy,efiring/scipy,vanpact/scipy,sonnyhu/scipy,Kamp9/scipy,endolith/scipy,mhogg/scipy,Eric89GXL/scipy,sriki18/scipy,haudren/scipy,maciejkula/scipy,mtrbean/scipy,niknow/scipy,nmayorov/scipy,giorgiop/scipy,aeklant/scipy,bkendzior/scipy,aeklant/scipy,felipebetancur/scipy,e-q/scipy,anntzer/scipy,rgommers/scipy,andyfaff/scipy,Eric89GXL/scipy,mdhaber/scipy,felipebetancur/scipy,Dapid/scipy,fernand/scipy,jamestwebber/scipy,mhogg/scipy,jakevdp/scipy,arokem/scipy,mikebenfield/scipy,matthewalbani/scipy,zerothi/scipy,raoulbq/scipy,ChanderG/scipy,gdooper/scipy,Shaswat27/scipy,surhudm/scipy,larsmans/scipy,WarrenWeckesser/scipy,jakevdp/scipy,haudren/scipy,arokem/scipy,ortylp/scipy,WarrenWeckesser/scipy,Shaswat27/scipy,Dapid/scipy,surhudm/scipy,Gillu13/scipy,apbard/scipy,anielsen001/scipy,apbard/scipy,trankmichael/scipy,efiring/scipy,perimosocordiae/scipy,minhlongdo/scipy,pnedunuri/scipy,anntzer/scipy,minhlongdo/scipy,pyramania/scipy,mdhaber/scipy,futurulus/scipy,grlee77/scipy,trankmichael/scipy,jor-/scipy,andyfaff/scipy,tylerjereddy/scipy,ortylp/scipy,gdooper/scipy,ndchorley/scipy,minhlongdo/scipy,gfyoung/scipy,kalvdans/scipy,dch312/scipy,Eric89GXL/scipy,vanpact/scipy,pschella/scipy,sauliusl/scipy,mgaitan/scipy,pbrod/scipy,mortada/scipy,nvoron23/scipy,sauliusl/scipy,mgaitan/scipy,trankmichael/scipy,vanpact/scipy,kalvdans/scipy,Stefan-Endres/scipy,chatcannon/scipy,giorgiop/scipy,Kamp9/scipy,richardotis/scipy,fredrikw/scipy,gfyoung/scipy,matthewalbani/scipy,befelix/scipy,jamestwebber/scipy,zxsted/scipy,zaxliu/scipy,behzadnouri/scipy,newemailjdm/scipy,Stefan-Endres/scipy,Dapid/scipy,gef756/scipy,dominicelse/scipy,aman-iitj/scipy,njwilson23/scipy,ndchorley/scipy,nonhermitian/scipy,felipebetancur/scipy,FRidh/scipy,maniteja123/scipy,aman-iitj/scipy,zerothi/scipy,vigna/scipy,matthewalbani/scipy,Eric89GXL/scipy,gdooper/scipy,haudren/scipy,newemailjdm/scipy,gfyoung/scipy,ales-erjavec/scipy,richardotis/scipy,jseabold/scipy,ChanderG/scipy,sriki18/scipy,kleskjr/scipy,hainm/scipy,anntzer/scipy,vberaudi/scipy,futurulus/scipy,pnedunuri/scipy,witcxc/scipy,mortada/scipy,maciejkula/scipy,hainm/scipy,mikebenfield/scipy,pnedunuri/scipy,petebachant/scipy,fredrikw/scipy,person142/scipy,sonnyhu/scipy,gertingold/scipy,aman-iitj/scipy,dch312/scipy,bkendzior/scipy,rmcgibbo/scipy,gef756/scipy,vhaasteren/scipy,ortylp/scipy,gef756/scipy,pyramania/scipy,perimosocordiae/scipy,efiring/scipy,endolith/scipy,felipebetancur/scipy,endolith/scipy,trankmichael/scipy,pnedunuri/scipy,jor-/scipy,giorgiop/scipy,e-q/scipy,vberaudi/scipy,nmayorov/scipy,jonycgn/scipy,woodscn/scipy,grlee77/scipy,WillieMaddox/scipy,vberaudi/scipy,person142/scipy,ChanderG/scipy,matthew-brett/scipy,jonycgn/scipy,mingwpy/scipy,bkendzior/scipy,ales-erjavec/scipy,mikebenfield/scipy,zaxliu/scipy,jonycgn/scipy,andim/scipy,pschella/scipy,cpaulik/scipy,Newman101/scipy,Shaswat27/scipy,ChanderG/scipy,matthew-brett/scipy,aarchiba/scipy,WarrenWeckesser/scipy,aman-iitj/scipy,piyush0609/scipy,Srisai85/scipy,anielsen001/scipy,njwilson23/scipy,matthewalbani/scipy,lhilt/scipy,perimosocordiae/scipy,jonycgn/scipy,mortonjt/scipy,richardotis/scipy,kalvdans/scipy,Kamp9/scipy,perimosocordiae/scipy,Shaswat27/scipy,scipy/scipy,raoulbq/scipy,jsilter/scipy,surhudm/scipy,ilayn/scipy,WillieMaddox/scipy,cpaulik/scipy,Srisai85/scipy,zerothi/scipy,richardotis/scipy,mortonjt/scipy,mdhaber/scipy,sauliusl/scipy,zaxliu/scipy,Newman101/scipy,dominicelse/scipy,jjhelmus/scipy,ales-erjavec/scipy,dominicelse/scipy,Srisai85/scipy,Newman101/scipy,njwilson23/scipy,grlee77/scipy,efiring/scipy,jor-/scipy,FRidh/scipy,gdooper/scipy,gef756/scipy,jjhelmus/scipy,piyush0609/scipy,mortada/scipy,piyush0609/scipy,josephcslater/scipy,minhlongdo/scipy,kleskjr/scipy,befelix/scipy,tylerjereddy/scipy,jsilter/scipy,apbard/scipy,behzadnouri/scipy,mgaitan/scipy,Gillu13/scipy,vhaasteren/scipy,felipebetancur/scipy,scipy/scipy,fernand/scipy,nvoron23/scipy,Eric89GXL/scipy,dch312/scipy,ales-erjavec/scipy,ChanderG/scipy,nonhermitian/scipy,josephcslater/scipy,zxsted/scipy,nonhermitian/scipy,WillieMaddox/scipy,andyfaff/scipy,mingwpy/scipy,jjhelmus/scipy,woodscn/scipy,sonnyhu/scipy,efiring/scipy,lukauskas/scipy,witcxc/scipy,fernand/scipy,bkendzior/scipy,mgaitan/scipy,ortylp/scipy,fredrikw/scipy,woodscn/scipy,larsmans/scipy,vigna/scipy,maciejkula/scipy,vhaasteren/scipy,maniteja123/scipy,Stefan-Endres/scipy,Shaswat27/scipy,giorgiop/scipy,pyramania/scipy,dominicelse/scipy,Gillu13/scipy,zaxliu/scipy,fredrikw/scipy,Srisai85/scipy,jseabold/scipy,tylerjereddy/scipy,Dapid/scipy,pizzathief/scipy,Eric89GXL/scipy,mtrbean/scipy,kleskjr/scipy,argriffing/scipy,maciejkula/scipy,pnedunuri/scipy,scipy/scipy,gdooper/scipy,vhaasteren/scipy,matthew-brett/scipy,njwilson23/scipy,piyush0609/scipy,petebachant/scipy,maniteja123/scipy,pyramania/scipy,jsilter/scipy,newemailjdm/scipy,argriffing/scipy,jonycgn/scipy,nvoron23/scipy,hainm/scipy,anntzer/scipy,WarrenWeckesser/scipy,aman-iitj/scipy,kalvdans/scipy,pbrod/scipy,lukauskas/scipy,dominicelse/scipy,behzadnouri/scipy,pizzathief/scipy,futurulus/scipy,Dapid/scipy,witcxc/scipy,jsilter/scipy,endolith/scipy,ilayn/scipy,sriki18/scipy,Srisai85/scipy,jakevdp/scipy,Kamp9/scipy,jamestwebber/scipy,chatcannon/scipy,anntzer/scipy,rgommers/scipy,mtrbean/scipy,e-q/scipy,FRidh/scipy,pyramania/scipy,maniteja123/scipy,chatcannon/scipy,josephcslater/scipy,FRidh/scipy,sauliusl/scipy,mortada/scipy,petebachant/scipy,jor-/scipy,felipebetancur/scipy,tylerjereddy/scipy,fredrikw/scipy,nvoron23/scipy,josephcslater/scipy,WillieMaddox/scipy,nvoron23/scipy,grlee77/scipy,ilayn/scipy,sauliusl/scipy,mhogg/scipy,chatcannon/scipy,jor-/scipy,maniteja123/scipy,vberaudi/scipy,andim/scipy,WarrenWeckesser/scipy,Kamp9/scipy,andim/scipy,anntzer/scipy,sonnyhu/scipy,sriki18/scipy,mikebenfield/scipy,mortonjt/scipy,cpaulik/scipy,Stefan-Endres/scipy,sriki18/scipy,piyush0609/scipy,Newman101/scipy,nonhermitian/scipy,ndchorley/scipy,anielsen001/scipy,e-q/scipy,cpaulik/scipy,trankmichael/scipy,arokem/scipy,scipy/scipy,niknow/scipy,lhilt/scipy,witcxc/scipy,perimosocordiae/scipy,mdhaber/scipy,ales-erjavec/scipy,andim/scipy,Stefan-Endres/scipy,aarchiba/scipy,fernand/scipy,haudren/scipy,lukauskas/scipy,pizzathief/scipy,raoulbq/scipy,gfyoung/scipy,behzadnouri/scipy,pizzathief/scipy,fredrikw/scipy,person142/scipy,FRidh/scipy,matthewalbani/scipy,pbrod/scipy,lhilt/scipy,scipy/scipy,raoulbq/scipy,jakevdp/scipy,matthew-brett/scipy,mdhaber/scipy,hainm/scipy,zerothi/scipy,futurulus/scipy,newemailjdm/scipy,gertingold/scipy,Shaswat27/scipy,apbard/scipy,grlee77/scipy,jonycgn/scipy,woodscn/scipy,mortonjt/scipy,arokem/scipy,surhudm/scipy,argriffing/scipy,aeklant/scipy,Dapid/scipy,larsmans/scipy,rmcgibbo/scipy,maniteja123/scipy,vhaasteren/scipy,zaxliu/scipy,ndchorley/scipy,scipy/scipy,Gillu13/scipy,vigna/scipy,Gillu13/scipy,mgaitan/scipy,vhaasteren/scipy,Srisai85/scipy,Stefan-Endres/scipy,dch312/scipy,anielsen001/scipy,endolith/scipy,zerothi/scipy,behzadnouri/scipy,pbrod/scipy,gertingold/scipy,efiring/scipy,rmcgibbo/scipy,jamestwebber/scipy,richardotis/scipy,befelix/scipy,zxsted/scipy,aeklant/scipy,ortylp/scipy,vanpact/scipy,pizzathief/scipy,lukauskas/scipy,surhudm/scipy,jjhelmus/scipy,jseabold/scipy,FRidh/scipy,ndchorley/scipy,petebachant/scipy,rgommers/scipy,dch312/scipy,mortonjt/scipy,lukauskas/scipy,vanpact/scipy,ChanderG/scipy,pbrod/scipy,endolith/scipy,chatcannon/scipy,kleskjr/scipy,pschella/scipy,perimosocordiae/scipy,hainm/scipy,Newman101/scipy,jamestwebber/scipy