Home
last modified time | relevance | path

Searched refs:doctest (Results 1 – 25 of 312) sorted by relevance

12345678910>>...13

/external/python/dateutil/docs/
Dexamples.rst32 .. doctest:: relativedelta
39 .. doctest:: relativedelta
46 .. doctest:: relativedelta
55 .. doctest:: relativedelta
65 .. doctest:: relativedelta
72 .. doctest:: relativedelta
81 .. doctest:: relativedelta
92 .. doctest:: relativedelta
111 .. doctest:: relativedelta
121 .. doctest:: relativedelta
[all …]
Drelativedelta.rst34 .. doctest:: relativedelta
41 .. doctest:: relativedelta
48 .. doctest:: relativedelta
57 .. doctest:: relativedelta
67 .. doctest:: relativedelta
74 .. doctest:: relativedelta
83 .. doctest:: relativedelta
94 .. doctest:: relativedelta
113 .. doctest:: relativedelta
123 .. doctest:: relativedelta
[all …]
Drrule.rst35 .. doctest:: rrule
47 .. doctest:: rrule
65 .. doctest:: rrule
81 .. doctest:: rrule
94 .. doctest:: rrule
107 .. doctest:: rrule
131 .. doctest:: rrule
143 .. doctest:: rrule
161 .. doctest:: rrule
175 .. doctest:: rrule
[all …]
/external/python/cpython2/Doc/library/
Dtraceback.rst207 File "<doctest...>", line 10, in <module>
211 File "<doctest...>", line 10, in <module>
213 File "<doctest...>", line 4, in lumberjack
218 File "<doctest...>", line 10, in <module>
220 File "<doctest...>", line 4, in lumberjack
228 ' File "<doctest...>", line 10, in <module>\n lumberjack()\n',
229 ' File "<doctest...>", line 4, in lumberjack\n bright_side_of_death()\n',
230 ' File "<doctest...>", line 7, in bright_side_of_death\n return tuple()[0]\n',
233 [('<doctest...>', 10, '<module>', 'lumberjack()'),
234 ('<doctest...>', 4, 'lumberjack', 'bright_side_of_death()'),
[all …]
Ddoctest.rst3 :mod:`doctest` --- Test interactive Python examples
6 .. module:: doctest
14 The :mod:`doctest` module searches for pieces of text that look like interactive
16 exactly as shown. There are several common ways to use doctest:
90 import doctest
91 doctest.testmod()
93 If you run :file:`example.py` directly from the command line, :mod:`doctest`
102 ``-v`` to the script, and :mod:`doctest` prints a detailed log of what
143 That's all you need to know to start making productive use of :mod:`doctest`!
155 The simplest way to start using doctest (but not necessarily the way you'll
[all …]
Dturtle.rst232 .. doctest::
253 .. doctest::
258 .. doctest::
276 .. doctest::
281 .. doctest::
299 .. doctest::
304 .. doctest::
326 .. doctest::
331 .. doctest::
354 .. doctest::
[all …]
/external/tensorflow/tensorflow/tools/docs/
Dtf_doctest_test.py22 import doctest
121 self.assertTrue(doctest.OutputChecker().check_output(
122 want=text_with_wildcards, got=text, optionflags=doctest.ELLIPSIS))
157 want=want, got=got, optionflags=doctest.ELLIPSIS))
165 want=want, got=got, optionflags=doctest.ELLIPSIS)
167 example = doctest.Example('None', want=want)
169 example=example, got=got, optionflags=doctest.ELLIPSIS)
Dtf_doctest.py35 import doctest # pylint: disable=g-bad-import-order
141 doctest.DocTestSuite(
143 test_finder=doctest.DocTestFinder(exclude_empty=False),
152 optionflags=(doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE
153 | doctest.IGNORE_EXCEPTION_DETAIL
154 | doctest.DONT_ACCEPT_BLANKLINE),
/external/python/cpython3/Doc/library/
Dimportlib.metadata.rst48 >>> from importlib.metadata import version # doctest: +SKIP
49 >>> version('wheel') # doctest: +SKIP
58 >>> list(metadata('wheel')) # doctest: +SKIP
82 >>> eps = entry_points() # doctest: +SKIP
83 >>> list(eps) # doctest: +SKIP
85 >>> scripts = eps['console_scripts'] # doctest: +SKIP
86 >>> wheel = [ep for ep in scripts if ep.name == 'wheel'][0] # doctest: +SKIP
87 >>> wheel # doctest: +SKIP
89 >>> main = wheel.load() # doctest: +SKIP
90 >>> main # doctest: +SKIP
[all …]
Ddoctest.rst1 :mod:`doctest` --- Test interactive Python examples
4 .. module:: doctest
12 **Source code:** :source:`Lib/doctest.py`
16 The :mod:`doctest` module searches for pieces of text that look like interactive
18 exactly as shown. There are several common ways to use doctest:
85 import doctest
86 doctest.testmod()
88 If you run :file:`example.py` directly from the command line, :mod:`doctest`
97 ``-v`` to the script, and :mod:`doctest` prints a detailed log of what
133 That's all you need to know to start making productive use of :mod:`doctest`!
[all …]
Dtraceback.rst412 File "<doctest...>", line 10, in <module>
416 File "<doctest...>", line 10, in <module>
418 File "<doctest...>", line 4, in lumberjack
423 File "<doctest...>", line 10, in <module>
425 File "<doctest...>", line 4, in lumberjack
433 ' File "<doctest...>", line 10, in <module>\n lumberjack()\n',
434 ' File "<doctest...>", line 4, in lumberjack\n bright_side_of_death()\n',
435 ' File "<doctest...>", line 7, in bright_side_of_death\n return tuple()[0]\n',
438 [<FrameSummary file <doctest...>, line 10 in <module>>,
439 <FrameSummary file <doctest...>, line 4 in lumberjack>,
[all …]
Dturtle.rst252 .. doctest::
274 .. doctest::
279 .. doctest::
298 .. doctest::
304 .. doctest::
323 .. doctest::
329 .. doctest::
352 .. doctest::
358 .. doctest::
382 .. doctest::
[all …]
/external/python/futures/docs/
DMakefile14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
85 doctest: target
86 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest
/external/python/cffi/doc/
DMakefile15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
86 doctest: target
87 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/cpython3/Lib/ctypes/test/
Dtest_objects.py57 import unittest, doctest
63 failures, tests = doctest.testmod(ctypes.test.test_objects)
67 doctest.testmod(ctypes.test.test_objects)
/external/python/cpython2/Lib/ctypes/test/
Dtest_objects.py57 import unittest, doctest, sys
63 failures, tests = doctest.testmod(ctypes.test.test_objects)
67 doctest.testmod(ctypes.test.test_objects)
/external/python/six/documentation/
DMakefile15 …nglehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
127 doctest: target
128 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/pyopenssl/doc/
DMakefile15 …nglehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
127 doctest: target
128 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/uritemplates/docs/
DMakefile15 …nglehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
127 doctest: target
128 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/rsa/doc/
DMakefile15 …nglehtml pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest
129 doctest: target
130 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/llvm/docs/
DMakefile.sphinx17 … pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
152 doctest:
153 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/funcsigs/docs/
DMakefile17 … pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
150 doctest: target
151 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/cryptography/docs/
DMakefile17 … pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
150 doctest: target
151 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/swiftshader/third_party/subzero/docs/
DMakefile.sphinx23 epub latex latexpdf text man changes linkcheck doctest gettext
161 doctest:
162 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/swiftshader/third_party/llvm-7.0/llvm/docs/
DMakefile.sphinx17 … pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
152 doctest:
153 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest

12345678910>>...13