Commits

Anonymous committed 3081c80

doctest setup-/testrunner now share stdout

This was a patch pfein send my via #pocoo

Comments (0)

Files changed (1)

sphinx/ext/doctest.py

                                                 optionflags=self.opt)
         self.test_runner = SphinxDocTestRunner(verbose=False,
                                                optionflags=self.opt)
+
+        self.test_runner._fakeout = self.setup_runner._fakeout
+
         if self.config.doctest_test_doctest_blocks:
             def condition(node):
                 return (isinstance(node, (nodes.literal_block, nodes.comment))