Use testdir fixture in test_double_test to ensure controlled environment for execution
Use testdir fixture in test_double_test to ensure controlled environment for execution

Because the test relies that two subsequent tests try to use pytest.warns to capture
the exact same warning, it is better to use testdir to ensure test execution
occurs in the order we expect (which might be different with pytest-xdist or
pytest-random for example)

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