What is is the significance of doctest in Sphinx? Can someone help me understand its use with a simple example.
I haven't used it myself but it is my understanding that it extends the functionality of doctest. For example it adds testsetup and testcleanup directives which you can put your set-up and tear-down logic in. Making it possible for Sphinx to exclude that in the documentation.
What is the real world use or significance of sphinx doctest?