~cjwatson/lazr.restful/docutils-0.8-compat

  • Committer: Colin Watson
  • Date: 2018-02-21 14:46:13 UTC
  • Revision ID: cjwatson@canonical.com-20180221144613-7wjj7b3w908056dm
Fix compatibility with docutils >= 0.8 under "zope.testrunner --subunit".

When zope.testrunner is asked for subunit output, it replaces sys.stdout
with a StringIO.  Following
http://repo.or.cz/docutils.git/commitdiff/14cde9fb, this confuses docutils
into autoclosing the stdout stream in use by subunit, which broke the
Launchpad test suite following an upgrade to docutils 0.14.

_PydocParser uses epydoc.markup.restructuredtext._DocumentPseudoWriter,
which never writes any output, so the simplest fix for this is just to tell
docutils.core.Publisher to use docutils.io.NullOutput for its output, which
removes any risk of it going anywhere near stdout.
Filename Latest Rev Last Changed Committer Comment Size
..
_bootstrap 23.1.17 15 years ago Gary Poster move buildout bootstrap.py to a separate directory Diff
src 1 15 years ago Barry Warsaw Initial package template for lazr packages. Diff
.bzrignore 198.1.1 12 years ago Ian Booth Add support for marshalling dicts 128 bytes Diff Download File
Symlink bootstrap.py 23.1.17 15 years ago Gary Poster move buildout bootstrap.py to a separate directory .
buildout.cfg 208.1.1 8 years ago William Grant Upgrade to ZTK 1.1.6 and match other dependencies 557 bytes Diff Download File
COPYING.txt 1 15 years ago Barry Warsaw Initial package template for lazr packages. 7.4 KB Diff Download File
ez_setup.py 125.2.6 13 years ago Leonard Richardson Response to feedback. 9.3 KB Diff Download File
HACKING.txt 96.1.1 14 years ago Guilherme Salgado Fix get_current_browser_request to not raise an At 1.2 KB Diff Download File
MANIFEST.in 61 14 years ago Gary Poster we want the .xsd file in the source dist too 140 bytes Diff Download File
README.txt 42.2.2 14 years ago Leonard Richardson Removed the one-off publications that just combine 845 bytes Diff Download File
File setup.py 217 6 years ago Colin Watson Fix compatibility with docutils >= 0.8 under "zope 3 KB Diff Download File
versions.cfg 212 8 years ago Colin Watson Switch zope.interface, zope.component, and lazr.de 594 bytes Diff Download File
ztk-versions.cfg 208.1.1 8 years ago William Grant Upgrade to ZTK 1.1.6 and match other dependencies 2.3 KB Diff Download File