minor: test_failure_function: use vars
minor: test_failure_function: use vars

The-Compiler/pytest,RonnyPfannschmidt/pytest,markshao/pytest,Akasurde/pytest,nicoddemus/pytest,alfredodeza/pytest,nicoddemus/pytest,The-Compiler/pytest,pytest-dev/pytest