Home
last modified time | relevance | path

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

1234567

/third_party/python/Doc/library/
Dimportlib.metadata.rst53 >>> from importlib.metadata import version # doctest: +SKIP
54 >>> version('wheel') # doctest: +SKIP
63 >>> list(metadata('wheel')) # doctest: +SKIP
91 >>> eps = entry_points() # doctest: +SKIP
97 >>> sorted(eps.groups) # doctest: +SKIP
104 >>> scripts = eps.select(group='console_scripts') # doctest: +SKIP
109 >>> scripts = entry_points(group='console_scripts') # doctest: +SKIP
113 >>> 'wheel' in scripts.names # doctest: +SKIP
115 >>> wheel = scripts['wheel'] # doctest: +SKIP
119 >>> (wheel,) = entry_points(group='console_scripts', name='wheel') # 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 …]
Dturtle.rst252 .. doctest::
274 .. doctest::
279 .. doctest::
298 .. doctest::
304 .. doctest::
323 .. doctest::
329 .. doctest::
352 .. doctest::
358 .. doctest::
382 .. doctest::
[all …]
Dtraceback.rst441 File "<doctest...>", line 10, in <module>
445 File "<doctest...>", line 10, in <module>
447 File "<doctest...>", line 4, in lumberjack
452 File "<doctest...>", line 10, in <module>
454 File "<doctest...>", line 4, in lumberjack
462 ' File "<doctest...>", line 10, in <module>\n lumberjack()\n',
463 ' File "<doctest...>", line 4, in lumberjack\n bright_side_of_death()\n',
464 ' File "<doctest...>", line 7, in bright_side_of_death\n return tuple()[0]\n',
467 [<FrameSummary file <doctest...>, line 10 in <module>>,
468 <FrameSummary file <doctest...>, line 4 in lumberjack>,
[all …]
Dstatistics.rst17 __name__ = '<doctest>'
102 .. doctest::
140 .. doctest::
163 .. doctest::
189 .. doctest::
198 .. doctest::
225 .. doctest::
233 .. doctest::
254 .. doctest::
274 .. doctest::
[all …]
Dast.rst159 .. doctest::
191 .. doctest::
221 .. doctest::
245 .. doctest::
266 .. doctest::
296 .. doctest::
329 .. doctest::
357 .. doctest::
383 .. doctest::
397 .. 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
Ddevelopment.rst9 module's contents. The :mod:`doctest` and :mod:`unittest` modules contains
22 doctest.rst
/third_party/python/Doc/howto/
Dsorting.rst23 .. doctest::
33 .. doctest::
43 .. doctest::
57 .. doctest::
70 .. doctest::
82 .. doctest::
110 .. doctest::
123 .. doctest::
138 .. doctest::
153 .. doctest::
[all …]
/third_party/python/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)
/third_party/python/Lib/test/
Dtest_doctest.py8 import doctest
741 include_empty_finder = doctest.DocTestFinder(exclude_empty=False)
742 exclude_empty_finder = doctest.DocTestFinder(exclude_empty=True)
3130 tests.addTest(doctest.DocTestSuite(doctest))
3131 tests.addTest(doctest.DocTestSuite())
Dtest_doctest2.py112 import doctest, sys
114 f, t = doctest.testmod(sys.modules[__name__])
123 from doctest import *
Dsample_doctest.py75 import doctest
76 return doctest.DocTestSuite()
/third_party/skia/third_party/externals/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
/third_party/rust/crates/memoffset/src/
Dlib.rs67 #[cfg(doctest)]
70 #[cfg(doctest)]
71 doctest!("../README.md");
/third_party/json/test/thirdparty/doctest/
Ddoctest.h447 namespace doctest {
1082 #define SFINAE_OP(ret,op) decltype(doctest::detail::declval<L>() op doctest::detail::declval<R>(),s…
1087 …bool res = op_macro(doctest::detail::forward<L>(lhs), doctest::detail::forward<R>(rhs)); …
1090 if(!res || doctest::getContextOptions()->success) \
1216 : lhs(doctest::detail::forward<L>(in))
1293 return Expression_lhs<L>(doctest::detail::forward<L>(operand), m_at);
1375 DOCTEST_BINARY_RELATIONAL_OP(0, doctest::detail::eq)
1376 DOCTEST_BINARY_RELATIONAL_OP(1, doctest::detail::ne)
1377 DOCTEST_BINARY_RELATIONAL_OP(2, doctest::detail::gt)
1378 DOCTEST_BINARY_RELATIONAL_OP(3, doctest::detail::lt)
[all …]
/third_party/rust/crates/nom/src/
Dlib.rs383 #[cfg(doctest)]
386 #[cfg(doctest)]
387 doc_comment::doctest!("../README.md");
/third_party/libabigail/doc/manuals/
DMakefile.am34 … pickle json htmlhelp qthelp devhelp epub latex latexpdf text man changes linkcheck doctest gettext
164 doctest: target
165 $(SPHINXBUILD) -b doctest $(ALLSPHINXOPTS) $(BUILDDIR)/doctest
/third_party/python/Lib/distutils/tests/
Dtest_versionpredicate.py6 import doctest
10 return doctest.DocTestSuite(distutils.versionpredicate)
/third_party/jerryscript/tests/unit-doc/
DCMakeLists.txt19 set(GEN_DOCTEST "${CMAKE_SOURCE_DIR}/tools/gen-doctest.py")
27 # Dry run of the doctest generator: analyze MarkDown files and get the list of
36 message(FATAL_ERROR "failed to get doctest file list")
39 # Process the output of the doctest generator: collect sources that must be
67 # Add custom command to run doctest generator if any of the MarkDown sources
/third_party/rust/crates/pin-project-lite/tests/doc/
Dlib.rs15 #[cfg_attr(doctest, cfg_attr(doctest, doc = include_str!("../../README.md")))]
/third_party/python/Doc/includes/
Dtest.py198 import doctest, __main__
199 doctest.testmod(__main__)
/third_party/nghttp2/doc/
Dmake.bat33 echo. doctest to run all doctests embedded in the documentation if enabled
161 if "%1" == "doctest" (
162 %SPHINXBUILD% -b doctest %ALLSPHINXOPTS% %BUILDDIR%/doctest
166 results in %BUILDDIR%/doctest/output.txt.
/third_party/jerryscript/docs/
D07.DEBUGGER.md130 [doctest]: # (test="link")
170 [doctest]: # (test="link")
212 [doctest]: # (test="link")
254 [doctest]: # (test="link")
299 [doctest]: # (test="link")
386 [doctest]: # (test="link")
423 [doctest]: # (test="link")
/third_party/python/Doc/
DMakefile24 suspicious coverage doctest pydoc-topics htmlview clean dist check serve \
125 doctest: BUILDER = doctest target
126 doctest: target

1234567