Home
last modified time | relevance | path

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

123456789

/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/python/cpython3/Doc/library/
Ddoctest.rst3 :mod:`doctest` --- Test interactive Python examples
6 .. module:: doctest
14 **Source code:** :source:`Lib/doctest.py`
18 The :mod:`doctest` module searches for pieces of text that look like interactive
20 exactly as shown. There are several common ways to use doctest:
87 import doctest
88 doctest.testmod()
90 If you run :file:`example.py` directly from the command line, :mod:`doctest`
99 ``-v`` to the script, and :mod:`doctest` prints a detailed log of what
135 That's all you need to know to start making productive use of :mod:`doctest`!
[all …]
Dtraceback.rst398 File "<doctest...>", line 10, in <module>
402 File "<doctest...>", line 10, in <module>
404 File "<doctest...>", line 4, in lumberjack
409 File "<doctest...>", line 10, in <module>
411 File "<doctest...>", line 4, in lumberjack
419 ' File "<doctest...>", line 10, in <module>\n lumberjack()\n',
420 ' File "<doctest...>", line 4, in lumberjack\n bright_side_of_death()\n',
421 ' File "<doctest...>", line 7, in bright_side_of_death\n return tuple()[0]\n',
424 [<FrameSummary file <doctest...>, line 10 in <module>>,
425 <FrameSummary file <doctest...>, line 4 in lumberjack>,
[all …]
Dturtle.rst252 .. doctest::
273 .. doctest::
278 .. doctest::
296 .. doctest::
301 .. doctest::
319 .. doctest::
324 .. doctest::
346 .. doctest::
351 .. doctest::
374 .. doctest::
[all …]
Dstatistics.rst17 __name__ = '<doctest>'
83 .. doctest::
132 .. doctest::
156 .. doctest::
164 .. doctest::
184 .. doctest::
204 .. doctest::
221 .. doctest::
232 .. doctest::
240 .. doctest::
[all …]
Dsecrets.rst14 __name__ = '<doctest>'
71 .. doctest::
73 >>> token_bytes(16) #doctest:+SKIP
83 .. doctest::
85 >>> token_hex(16) #doctest:+SKIP
95 .. doctest::
97 >>> token_urlsafe(16) #doctest:+SKIP
/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
Dmake.bat25 echo. doctest to run all doctests embedded in the documentation if enabled
104 if "%1" == "doctest" (
105 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% _build/doctest
108 results in _build/doctest/output.txt.
/external/mesa3d/src/gallium/docs/
DMakefile15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest
86 doctest: target
87 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
Dmake.bat26 echo. doctest to run all doctests embedded in the documentation if enabled
105 if "%1" == "doctest" (
106 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
109 results in %BUILDDIR%/doctest/output.txt.
/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/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/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/clang/docs/
DMakefile.sphinx17 …json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext default
160 doctest:
161 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/autotest/client/site_tests/kernel_CheckArmErrata/
Dkernel_CheckArmErrata.py412 def run_once(self, doctest=False): argument
423 if doctest:
424 import doctest, inspect, StringIO
438 failure_count, test_count = doctest.testmod(
439 inspect.getmodule(self), optionflags=doctest.ELLIPSIS)
/external/fio/doc/
DMakefile197 .PHONY: doctest
198 doctest: target
199 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/external/python/cpython3/Lib/test/
Dsample_doctest.py75 import doctest
76 return doctest.DocTestSuite()
/external/python/cpython2/Lib/test/
Dsample_doctest.py75 import doctest
76 return doctest.DocTestSuite()
/external/python/cpython2/Lib/distutils/tests/
Dtest_versionpredicate.py6 import doctest
10 return doctest.DocTestSuite(distutils.versionpredicate)
/external/python/cpython3/Lib/distutils/tests/
Dtest_versionpredicate.py6 import doctest
10 return doctest.DocTestSuite(distutils.versionpredicate)
/external/python/cpython2/Doc/includes/
Dtest.py212 import doctest, __main__
213 doctest.testmod(__main__)
/external/python/cpython3/Doc/includes/
Dtest.py212 import doctest, __main__
213 doctest.testmod(__main__)

123456789