MNT: Replace catch_warnings in config tests
MNT: Replace catch_warnings in config tests

saimn/astropy,StuartLittlefair/astropy,saimn/astropy,astropy/astropy,pllim/astropy,pllim/astropy,larrybradley/astropy,dhomeier/astropy,lpsinger/astropy,saimn/astropy,larrybradley/astropy,pllim/astropy,pllim/astropy,larrybradley/astropy,astropy/astropy,mhvk/astropy,mhvk/astropy,StuartLittlefair/astropy,aleksandr-bakanov/astropy,mhvk/astropy,saimn/astropy,astropy/astropy,lpsinger/astropy,larrybradley/astropy,dhomeier/astropy,StuartLittlefair/astropy,astropy/astropy,mhvk/astropy,StuartLittlefair/astropy,lpsinger/astropy,dhomeier/astropy,larrybradley/astropy,aleksandr-bakanov/astropy,dhomeier/astropy,astropy/astropy,pllim/astropy,mhvk/astropy,aleksandr-bakanov/astropy,aleksandr-bakanov/astropy,StuartLittlefair/astropy,lpsinger/astropy,lpsinger/astropy,saimn/astropy,dhomeier/astropy