Implements an option to choose the doctest output format in case of failure. (fixes #1749)
Implements an option to choose the doctest output format in case of failure. (fixes #1749)

txomon/pytest,tomviner/pytest,etataurov/pytest,The-Compiler/pytest,pfctdayelise/pytest,skylarjhdownes/pytest,ddboline/pytest,tgoodlet/pytest,pytest-dev/pytest,MichaelAquilina/pytest,davidszotten/pytest,tareqalayan/pytest,malinoff/pytest,hpk42/pytest,alfredodeza/pytest,The-Compiler/pytest,nicoddemus/pytest,jaraco/pytest,tomviner/pytest,rmfitzpatrick/pytest,hackebrot/pytest,flub/pytest,vmalloc/dessert,markshao/pytest,eli-b/pytest,Akasurde/pytest,nicoddemus/pytest,hpk42/pytest,RonnyPfannschmidt/pytest