Commits

Georg Brandl committed 6870fcf

#601: do not require setup for executing doctests.

Comments (0)

Files changed (1)

sphinx/ext/doctest.py

                 examples.append(doctest.Example(testcode.code, '',
                                                 lineno=testcode.lineno))
             if not examples:
-                return
+                return True
             # simulate a doctest with the code
             sim_doctest = doctest.DocTest(examples, {},
                                           '%s (%s code)' % (group.name, what),