Fix test that expected "unknown hook" error on stderr
Fix test that expected "unknown hook" error on stderr

The-Compiler/pytest,Akasurde/pytest,pfctdayelise/pytest,nicoddemus/pytest,alfredodeza/pytest,nicoddemus/pytest,tomviner/pytest,ddboline/pytest,flub/pytest,hackebrot/pytest,rmfitzpatrick/pytest,pytest-dev/pytest,markshao/pytest,The-Compiler/pytest,tareqalayan/pytest,tomviner/pytest,MichaelAquilina/pytest,RonnyPfannschmidt/pytest,txomon/pytest,davidszotten/pytest