mirror of
https://github.com/sphinx-doc/sphinx.git
synced 2025-02-25 18:55:22 -06:00
Add testcase for trim_doctest_flags
This commit is contained in:
9
tests/roots/test-trim_doctest_flags/conf.py
Normal file
9
tests/roots/test-trim_doctest_flags/conf.py
Normal file
@@ -0,0 +1,9 @@
|
||||
# -*- coding: utf-8 -*-
|
||||
|
||||
master_doc = 'index'
|
||||
|
||||
extensions = ['sphinx.ext.doctest']
|
||||
|
||||
latex_documents = [
|
||||
(master_doc, 'test.tex', 'The basic Sphinx documentation for testing', 'Sphinx', 'report')
|
||||
]
|
||||
23
tests/roots/test-trim_doctest_flags/index.rst
Normal file
23
tests/roots/test-trim_doctest_flags/index.rst
Normal file
@@ -0,0 +1,23 @@
|
||||
test-trim_doctest_flags
|
||||
=======================
|
||||
|
||||
.. code-block:: pycon
|
||||
|
||||
>>> datetime.date.now() # doctest: +FOO
|
||||
datetime.date(2008, 1, 1)
|
||||
|
||||
.. code-block:: none
|
||||
|
||||
>>> datetime.date.now() # doctest: +BAR
|
||||
datetime.date(2008, 1, 1)
|
||||
|
||||
.. code-block:: guess
|
||||
|
||||
# vim: set filetype=pycon
|
||||
>>> datetime.date.now() # doctest: +BAZ
|
||||
datetime.date(2008, 1, 1)
|
||||
|
||||
.. testcode::
|
||||
|
||||
>>> datetime.date.now() # doctest: +QUX
|
||||
datetime.date(2008, 1, 1)
|
||||
Reference in New Issue
Block a user