TST: spatial: add a regression test for gh-8051 (#8052)
TST: spatial: add a regression test for gh-8051 (#8052)

Add a regression test for gh-8051. The issue was not reproduced,
but adding a test nevertheless.
Stefan-Endres/scipy,andyfaff/scipy,Eric89GXL/scipy,endolith/scipy,grlee77/scipy,tylerjereddy/scipy,tylerjereddy/scipy,nmayorov/scipy,rgommers/scipy,arokem/scipy,gertingold/scipy,endolith/scipy,arokem/scipy,gfyoung/scipy,lhilt/scipy,grlee77/scipy,mdhaber/scipy,aarchiba/scipy,scipy/scipy,nmayorov/scipy,zerothi/scipy,nmayorov/scipy,jamestwebber/scipy,e-q/scipy,anntzer/scipy,andyfaff/scipy,vigna/scipy,Stefan-Endres/scipy,vigna/scipy,Stefan-Endres/scipy,lhilt/scipy,person142/scipy,mdhaber/scipy,perimosocordiae/scipy,person142/scipy,Eric89GXL/scipy,anntzer/scipy,aeklant/scipy,rgommers/scipy,endolith/scipy,jor-/scipy,e-q/scipy,andyfaff/scipy,ilayn/scipy,gertingold/scipy,Eric89GXL/scipy,rgommers/scipy,scipy/scipy,ilayn/scipy,pizzathief/scipy,matthew-brett/scipy,nmayorov/scipy,Eric89GXL/scipy,anntzer/scipy,scipy/scipy,gfyoung/scipy,aarchiba/scipy,anntzer/scipy,perimosocordiae/scipy,perimosocordiae/scipy,perimosocordiae/scipy,person142/scipy,pizzathief/scipy,lhilt/scipy,pizzathief/scipy,matthew-brett/scipy,jor-/scipy,vigna/scipy,endolith/scipy,WarrenWeckesser/scipy,zerothi/scipy,WarrenWeckesser/scipy,Stefan-Endres/scipy,rgommers/scipy,vigna/scipy,pizzathief/scipy,endolith/scipy,anntzer/scipy,zerothi/scipy,perimosocordiae/scipy,tylerjereddy/scipy,zerothi/scipy,grlee77/scipy,pizzathief/scipy,arokem/scipy,person142/scipy,lhilt/scipy,zerothi/scipy,gertingold/scipy,anntzer/scipy,WarrenWeckesser/scipy,zerothi/scipy,andyfaff/scipy,WarrenWeckesser/scipy,Eric89GXL/scipy,jamestwebber/scipy,gfyoung/scipy,aeklant/scipy,ilayn/scipy,andyfaff/scipy,ilayn/scipy,jamestwebber/scipy,matthew-brett/scipy,arokem/scipy,e-q/scipy,ilayn/scipy,vigna/scipy,WarrenWeckesser/scipy,aarchiba/scipy,e-q/scipy,tylerjereddy/scipy,nmayorov/scipy,gfyoung/scipy,matthew-brett/scipy,gertingold/scipy,lhilt/scipy,jamestwebber/scipy,scipy/scipy,aarchiba/scipy,jamestwebber/scipy,gertingold/scipy,e-q/scipy,aarchiba/scipy,mdhaber/scipy,perimosocordiae/scipy,tylerjereddy/scipy,matthew-brett/scipy,ilayn/scipy,aeklant/scipy,mdhaber/scipy,mdhaber/scipy,mdhaber/scipy,jor-/scipy,endolith/scipy,grlee77/scipy,Stefan-Endres/scipy,scipy/scipy,jor-/scipy,Eric89GXL/scipy,grlee77/scipy,person142/scipy,aeklant/scipy,rgommers/scipy,scipy/scipy,Stefan-Endres/scipy,gfyoung/scipy,arokem/scipy,andyfaff/scipy,aeklant/scipy,jor-/scipy,WarrenWeckesser/scipy