BUG: fix fail to open tempfile in messagestream.pyx (#8850)
BUG: fix fail to open tempfile in messagestream.pyx (#8850)

WarrenWeckesser/scipy,mdhaber/scipy,anntzer/scipy,andyfaff/scipy,scipy/scipy,scipy/scipy,endolith/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,rgommers/scipy,anntzer/scipy,andyfaff/scipy,perimosocordiae/scipy,endolith/scipy,Stefan-Endres/scipy,ilayn/scipy,anntzer/scipy,mdhaber/scipy,perimosocordiae/scipy,perimosocordiae/scipy,WarrenWeckesser/scipy,andyfaff/scipy,mdhaber/scipy,andyfaff/scipy,Stefan-Endres/scipy,Stefan-Endres/scipy,rgommers/scipy,WarrenWeckesser/scipy,mdhaber/scipy,ilayn/scipy,rgommers/scipy,endolith/scipy,rgommers/scipy,perimosocordiae/scipy,endolith/scipy,WarrenWeckesser/scipy,ilayn/scipy,ilayn/scipy,andyfaff/scipy,mdhaber/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,scipy/scipy,scipy/scipy,Stefan-Endres/scipy,andyfaff/scipy,scipy/scipy,scipy/scipy,anntzer/scipy,anntzer/scipy,anntzer/scipy,rgommers/scipy,ilayn/scipy,perimosocordiae/scipy,mdhaber/scipy,ilayn/scipy,Stefan-Endres/scipy,endolith/scipy,endolith/scipy