tests: add test_via_exec
tests: add test_via_exec

Via https://github.com/pytest-dev/pytest/issues/6574.

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