fix tests to not fail if pyc-file-writing is disabled
fix tests to not fail if pyc-file-writing is disabled

--HG--
branch : 1.0.x

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