``tornado.httputil`` --- Manipulate HTTP headers and URLs
=========================================================
+.. testsetup::
+
+ from tornado.httputil import *
+
.. automodule:: tornado.httputil
:members:
``tornado.util`` --- General-purpose utilities
==============================================
+.. testsetup::
+
+ from tornado.util import *
+
.. automodule:: tornado.util
:members:
{py27,py3}-unittest2,
# Ensure the sphinx build has no errors or warnings
- py3-docs
+ py3-sphinx-docs,
+ # Run the doctests via sphinx (which covers things not run
+ # in the regular test suite and vice versa)
+ {py2,py3}-sphinx-doctest
[testenv]
# Most of these are defaults, but if you specify any you can't fall back
py33-asyncio: asyncio
trollius: trollius
py2-monotonic: Monotime
+ sphinx: sphinx
+ sphinx: sphinx_rtd_theme
setenv =
# The extension is mandatory on cpython.
# Remove it (it's not a part of {opts}) to only install real releases.
install_command = pip install {opts} {packages}
-[testenv:py3-docs]
+[testenv:py3-sphinx-docs]
changedir = docs
# For some reason the extension fails to load in this configuration,
# but it's not really needed for docs anyway.
setenv = TORNADO_EXTENSION=0
-deps =
- sphinx==1.2.2
- sphinx_rtd_theme
commands =
sphinx-build -q -E -n -W -b html . {envtmpdir}/html
+
+[testenv:py2-sphinx-doctest]
+changedir = docs
+setenv = TORNADO_EXTENSION=0
+commands =
+ sphinx-build -q -E -n -W -b doctest . {envtmpdir}/doctest
+
+[testenv:py3-sphinx-doctest]
+changedir = docs
+setenv = TORNADO_EXTENSION=0
+commands =
+ sphinx-build -q -E -n -W -b doctest . {envtmpdir}/doctest