Add test capturing new expectation. Ref #3314.
Add test capturing new expectation. Ref #3314.

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