Use monkeypatch to set the PYTEST_ADDOPTS environment variable in the test.
Use monkeypatch to set the PYTEST_ADDOPTS environment variable in the test.

--HG--
branch : env-addopts

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