/external/python/cpython3/Lib/test/ |
D | test_doctest.py | 2 Test script for doctest. 6 import doctest 181 >>> example = doctest.Example('print(1)', '1\n') 191 >>> example = doctest.Example('[].pop()', '', exc_msg, 193 ... options={doctest.ELLIPSIS: True}) 201 >>> e = doctest.Example('print(1)', '1\n') 205 >>> e = doctest.Example('print(1)\n', '1\n') 210 >>> e = doctest.Example('print(1);\nprint(2)\n', '1\n2\n') 214 >>> e = doctest.Example('print(1);\nprint(2)', '1\n2\n') 219 >>> e = doctest.Example('', '') [all …]
|
D | test_pdb.py | 3 import doctest 16 # This little helper class is essential for testing pdb under doctest. 52 > <doctest test.test_pdb.test_pdb_displayhook[0]>(3)test_function() 94 >>> with PdbTestInput([ # doctest: +ELLIPSIS, +NORMALIZE_WHITESPACE 119 > <doctest test.test_pdb.test_pdb_basic_commands[3]>(3)test_function() 123 > <doctest test.test_pdb.test_pdb_basic_commands[0]>(1)test_function_2() 142 <doctest test.test_pdb.test_pdb_basic_commands[4]>(25)<module>() 144 <doctest test.test_pdb.test_pdb_basic_commands[3]>(3)test_function() 146 > <doctest test.test_pdb.test_pdb_basic_commands[0]>(1)test_function_2() 149 > <doctest test.test_pdb.test_pdb_basic_commands[3]>(3)test_function() [all …]
|
D | test_zipimport_support.py | 12 import doctest 24 # doctest (Issue 4197) 36 finder = doctest.DocTestFinder(verbose=verbose, recurse=False) 37 runner = doctest.DocTestRunner(verbose=verbose) 50 print ('doctest (%s) ... %d tests with zero failures' % (module.__name__, t)) 95 # To avoid having to keep two copies of the doctest module's 108 # The sample doctest files rewritten to include in the zipped version. 137 # which aren't available to the zipped version (the doctest 141 # doctest could really use some APIs which take a text 191 import doctest [all …]
|
D | sample_doctest_no_doctests.py | 1 """This is a sample module used for testing doctest. 3 This module is for testing how doctest handles a module with docstrings 4 but no doctest examples. 10 """A docstring with no doctest examples.
|
/external/python/cpython2/Lib/test/ |
D | test_doctest.py | 3 Test script for doctest. 8 import doctest 173 >>> example = doctest.Example('print 1', '1\n') 183 >>> example = doctest.Example('[].pop()', '', exc_msg, 185 ... options={doctest.ELLIPSIS: True}) 193 >>> e = doctest.Example('print 1', '1\n') 197 >>> e = doctest.Example('print 1\n', '1\n') 202 >>> e = doctest.Example('print 1;\nprint 2\n', '1\n2\n') 206 >>> e = doctest.Example('print 1;\nprint 2', '1\n2\n') 211 >>> e = doctest.Example('', '') [all …]
|
D | test_pdb.py | 12 # This little helper class is essential for testing pdb under doctest. 115 > <doctest test.test_pdb.test_pdb_displayhook[0]>(3)test_function() 151 >>> with PdbTestInput([ # doctest: +NORMALIZE_WHITESPACE 176 > <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>(3)test_function() 179 Breakpoint 1 at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:3 185 Breakpoint 2 at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:4 187 Breakpoint 3 at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:4 190 1 breakpoint keep no at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:3 193 2 breakpoint keep yes at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:4 194 3 breakpoint keep yes at <doctest test.test_pdb.test_pdb_breakpoint_commands[0]>:4 [all …]
|
D | test_syntax.py | 8 SyntaxError: name 'x' is local and global (<doctest test.test_syntax[0]>, line 1) 21 doctest. Since all the code comes from the same module, a suffix like 32 File "<doctest test.test_syntax[1]>", line 1 37 File "<doctest test.test_syntax[2]>", line 1 46 File "<doctest test.test_syntax[3]>", line 1 51 File "<doctest test.test_syntax[4]>", line 1 56 File "<doctest test.test_syntax[5]>", line 1 61 File "<doctest test.test_syntax[6]>", line 1 66 File "<doctest test.test_syntax[7]>", line 1 71 File "<doctest test.test_syntax[8]>", line 1 [all …]
|
D | test_zipimport_support.py | 12 import doctest 25 # doctest (Issue 4197) 38 # Direct doctest output (normally just errors) to real stdout; doctest 43 finder = doctest.DocTestFinder(verbose=verbose, recurse=False) 44 runner = doctest.DocTestRunner(verbose=verbose) 59 print 'doctest (%s) ... %d tests with zero failures' % (module.__name__, t) 90 # To avoid having to keep two copies of the doctest module's 103 # The sample doctest files rewritten to include in the zipped version. 133 # which aren't available to the zipped version (the doctest 137 # doctest could really use some APIs which take a text [all …]
|
D | sample_doctest_no_doctests.py | 1 """This is a sample module used for testing doctest. 3 This module is for testing how doctest handles a module with docstrings 4 but no doctest examples. 10 """A docstring with no doctest examples.
|
/external/python/cpython2/Doc/library/ |
D | doctest.rst | 3 :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 …]
|
D | traceback.rst | 207 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 …]
|
D | turtle.rst | 232 .. 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/ |
D | doctest.rst | 1 :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 …]
|
D | importlib.metadata.rst | 48 >>> from importlib.metadata import version # doctest: +SKIP 49 >>> version('wheel') # doctest: +SKIP 58 >>> list(metadata('wheel')) # doctest: +SKIP 84 >>> eps = entry_points() # doctest: +SKIP 85 >>> list(eps) # doctest: +SKIP 87 >>> scripts = eps['console_scripts'] # doctest: +SKIP 88 >>> wheel = [ep for ep in scripts if ep.name == 'wheel'][0] # doctest: +SKIP 89 >>> wheel # doctest: +SKIP 91 >>> wheel.module # doctest: +SKIP 93 >>> wheel.attr # doctest: +SKIP [all …]
|
D | traceback.rst | 412 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 …]
|
D | statistics.rst | 17 __name__ = '<doctest>' 91 .. doctest:: 128 .. doctest:: 151 .. doctest:: 177 .. doctest:: 186 .. doctest:: 211 .. doctest:: 219 .. doctest:: 240 .. doctest:: 260 .. doctest:: [all …]
|
D | turtle.rst | 252 .. doctest:: 274 .. doctest:: 279 .. doctest:: 298 .. doctest:: 304 .. doctest:: 323 .. doctest:: 329 .. doctest:: 352 .. doctest:: 358 .. doctest:: 382 .. doctest:: [all …]
|
/external/python/dateutil/docs/ |
D | relativedelta.rst | 34 .. 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 …]
|
D | examples.rst | 32 .. 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 …]
|
D | rrule.rst | 35 .. 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/Lib/ |
D | doctest.py | 1 # Module doctest. 9 r"""Module doctest -- a framework for running examples in docstrings. 14 import doctest 15 doctest.testmod() 44 of doctest's default behaviors. See the Library Reference Manual for 66 # 2. Example & DocTest 68 'DocTest', 69 # 3. Doctest Parser 71 # 4. Doctest Finder 73 # 5. Doctest Runner [all …]
|
/external/python/cpython3/Lib/ |
D | doctest.py | 1 # Module doctest. 9 r"""Module doctest -- a framework for running examples in docstrings. 14 import doctest 15 doctest.testmod() 44 of doctest's default behaviors. See the Library Reference Manual for 67 # 2. Example & DocTest 69 'DocTest', 70 # 3. Doctest Parser 72 # 4. Doctest Finder 74 # 5. Doctest Runner [all …]
|
/external/tensorflow/tensorflow/tools/docs/ |
D | tf_doctest.py | 34 # We put doctest after absltest so that it picks up the unittest monkeypatch. 35 # Otherwise doctest tests aren't runnable at all. 36 import doctest # pylint: disable=g-bad-import-order 42 flags.DEFINE_list('module', [], 'A list of specific module to run doctest on.') 47 flags.DEFINE_string('file', None, 'A specific file to run doctest on.') 198 doctest.DocTestSuite( 200 test_finder=doctest.DocTestFinder(exclude_empty=False), 209 optionflags=(doctest.ELLIPSIS | doctest.NORMALIZE_WHITESPACE 210 | doctest.IGNORE_EXCEPTION_DETAIL 211 | doctest.DONT_ACCEPT_BLANKLINE),
|
/external/python/futures/docs/ |
D | Makefile | 14 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 27 @echo " doctest to run all doctests embedded in the documentation (if enabled)" 85 doctest: target 86 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) _build/doctest 88 "results in _build/doctest/output.txt."
|
/external/python/cffi/doc/ |
D | Makefile | 15 .PHONY: help clean html dirhtml pickle json htmlhelp qthelp latex changes linkcheck doctest 28 @echo " doctest to run all doctests embedded in the documentation (if enabled)" 86 doctest: target 87 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest 89 "results in $(BUILDDIR)/doctest/output.txt."
|