1. Blaise Laflamme
  2. sphinx

Commits

Georg Brandl  committed 6870fcf

#601: do not require setup for executing doctests.

  • Participants
  • Parent commits 721b390
  • Branches default

Comments (0)

Files changed (1)

File sphinx/ext/doctest.py

View file
                 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),