restrucure pytest.main.wrap_session to allow for non-testrun wraps
restrucure pytest.main.wrap_session to allow for non-testrun wraps

jb098/pytest,etataurov/pytest,rmfitzpatrick/pytest,mdboom/pytest,tgoodlet/pytest,gabrielcnr/pytest,RonnyPfannschmidt/pytest,The-Compiler/pytest,The-Compiler/pytest,vmalloc/dessert,jb098/pytest,icemac/pytest,ionelmc/pytest,mdboom/pytest,vodik/pytest,JonathonSonesen/pytest,chillbear/pytest,pytest-dev/pytest,rouge8/pytest,hackebrot/pytest,mbirtwell/pytest,omarkohl/pytest,ropez/pytest,Bachmann1234/pytest,mhils/pytest,bukzor/pytest,tomviner/pytest,chiller/pytest,userzimmermann/pytest,txomon/pytest,alfredodeza/pytest,icemac/pytest,ionelmc/pytest,oleg-alexandrov/pytest,ropez/pytest,malinoff/pytest,hpk42/pytest,lukas-bednar/pytest,chiller/pytest,MengJueM/pytest,lukas-bednar/pytest,chillbear/pytest,ddboline/pytest,gabrielcnr/pytest,oleg-alexandrov/pytest,vodik/pytest,MichaelAquilina/pytest,MengJueM/pytest,bukzor/pytest,markshao/pytest,jaraco/pytest,davidszotten/pytest,rouge8/pytest,skylarjhdownes/pytest,Bjwebb/pytest,userzimmermann/pytest,nicoddemus/pytest,flub/pytest,mhils/pytest,omarkohl/pytest,JonathonSonesen/pytest,pfctdayelise/pytest,nicoddemus/pytest,eli-b/pytest,tomviner/pytest,tareqalayan/pytest,hpk42/pytest,Bjwebb/pytest,Akasurde/pytest,Bachmann1234/pytest,mbirtwell/pytest