add test for stepwise attribute error Refs: #5444
add test for stepwise attribute error Refs: #5444

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