Commits

Georg Brandl committed e7b1a6e

Remove duplicate warning.

Comments (0)

Files changed (1)

sphinx/ext/doctest.py

                 test = parser.get_doctest(code[0].code, {},
                                           group.name, filename, code[0].lineno)
                 if not test.examples:
-                    self._out('WARNING: no examples in doctest block at '
-                              + filename + ', line %s\n' % code[0].lineno)
                     continue
                 for example in test.examples:
                     # apply directive's comparison options