Refactoring doctests (#5518)
Refactoring doctests (#5518)

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