Home
last modified time | relevance | path

Searched +refs:doctest +refs:close +refs:block +refs:re (Results 1 – 25 of 287) sorted by relevance

12345678910>>...12

/dports/devel/ipython5/ipython-5.10.0/IPython/testing/plugin/
H A Dipdoctest.py22 import doctest
26 import re
182 random_re = re.compile(r'#\s*random\s+')
376 re.MULTILINE | re.VERBOSE)
379 re.MULTILINE | re.VERBOSE)
391 block = _ip.input_transformer_manager.transform_cell(source)
392 if len(block.splitlines()) == 1:
393 return _ip.prefilter(block)
395 return block
671 optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS
[all …]
/dports/biology/seqan-apps/seqan-seqan-v2.4.0/util/py_lib/
H A Dpyratemp.py183 import re
398 f.close()
429 % (re.escape(_comment_start), re.escape(_comment_end))
430 _reComment = re.compile(_strComment, re.M)
440 """ % (re.escape(_sub_start), re.escape(_sub_end),
441 re.escape(_subesc_start), re.escape(_subesc_end))
442 _reSubstitution = re.compile(_strSubstitution, re.X|re.M)
455 _e = re.escape(_block_end)
475 _reBlock = re.compile(_strBlock, re.X|re.M)
1185 import doctest
[all …]
/dports/devel/py-tblib/tblib-1.7.0/src/tblib.egg-info/
H A DPKG-INFO164 >>> try: # doctest: +SKIP
192 .. code-block:: python
196 >>> import numpy # doctest: +SKIP
209 .. code-block:: python
212 >>> import numpy # doctest: +SKIP
224 .. code-block:: python
331 Or a traceback that's caused by exceeding the recursion limit (here we're
533 How's this useful? Imagine you're using multiprocessing like this::
539 >>> pool = Pool() # doctest: +SKIP
540 >>> try: # doctest: +SKIP
[all …]
/dports/devel/py-tblib/tblib-1.7.0/
H A DPKG-INFO164 >>> try: # doctest: +SKIP
192 .. code-block:: python
196 >>> import numpy # doctest: +SKIP
209 .. code-block:: python
212 >>> import numpy # doctest: +SKIP
224 .. code-block:: python
331 Or a traceback that's caused by exceeding the recursion limit (here we're
533 How's this useful? Imagine you're using multiprocessing like this::
539 >>> pool = Pool() # doctest: +SKIP
540 >>> try: # doctest: +SKIP
[all …]
H A DREADME.rst207 >>> try: # doctest: +SKIP
235 .. code-block:: python
239 >>> import numpy # doctest: +SKIP
252 .. code-block:: python
255 >>> import numpy # doctest: +SKIP
267 .. code-block:: python
374 Or a traceback that's caused by exceeding the recursion limit (here we're
576 How's this useful? Imagine you're using multiprocessing like this::
582 >>> pool = Pool() # doctest: +SKIP
583 >>> try: # doctest: +SKIP
[all …]
/dports/textproc/py-nltk/nltk-3.4.1/nltk/test/
H A Dcorpus.doctest646 re-entered cmd=done lemma=re-enter lexsn=2:38:00:: pos=VB wnsn=1
771 >>> import re
778 ... if re.match(r'(.*)\1$', lexeme):
1562 the block reader. Smaller block sizes will increase the memory
1564 integers per block). On the other hand, larger block sizes may
1577 reads one block at a time using the block reader until it reaches
1583 block.)
1614 ... f.close()
1675 We're done with the test corpus:
2035 >>> reader.close()
[all …]
/dports/editors/kakoune/kakoune-2021.11.08/rc/filetype/
H A Drust.kak56 add-highlighter shared/rust/block_doc/doctest/marker region ``` $ group
57 add-highlighter shared/rust/block_doc/doctest/marker/fence regex ``` 0:meta
58 add-highlighter shared/rust/block_doc/doctest/marker/keywords regex [\d\w] 0:meta # already matched…
59 add-highlighter shared/rust/block_doc/doctest/inner default-region group
60 add-highlighter shared/rust/block_doc/doctest/inner/hidden regex '^\h*\**\h*#' 0:meta
61 add-highlighter shared/rust/block_doc/doctest/inner/comment regex ^\h*\* 0:documentation
62 add-highlighter shared/rust/block_doc/doctest/inner/code ref rust
131 ] catch %[ # block comment
149 # if the previous line is an empty comment line, close the comment scope
164 # re-indent previous line if it starts with where to match previous block
[all …]
/dports/graphics/py-graphviz/graphviz-0.10.1/docs/
H A Dmanual.rst47 >>> dot #doctest: +ELLIPSIS
76 >>> print(dot.source) # doctest: +NORMALIZE_WHITESPACE
123 >>> dot.render() # doctest: +SKIP
275 >>> print(q.source) # doctest: +NORMALIZE_WHITESPACE
328 content more elegantly within a ``with``-block).
342 Second usage, with a ``with``-block (omitting the ``graph`` argument):
432 >>> src #doctest: +ELLIPSIS
483 etc.) file for as long as the viewer is open (blocking re-rendering it with a
486 invocation to avoid needing to close the viewer window each time within such an
496 >>> g.view(tempfile.mktemp('.gv')) # doctest: +SKIP
[all …]
/dports/www/webpy/web.py-0.62/web/
H A Dutils.py9 import re
502 def update(block=False): argument
503 if self.running[key].acquire(block):
510 update(block=True)
521 re_compile = memoize(re.compile)
1180 os.close(f)
1443 f.close()
1612 p.stdin.close()
1623 import doctest
1625 doctest.testmod()
H A Dtemplate.py414 block = ""
418 block += "\n"
420 block += line[len(indent) :]
424 return block, text
458 block = line.lstrip()
656 self.code = "\n" + block
659 import re
661 rx = re.compile("^", re.M)
1223 out.close()
1728 import doctest
[all …]
/dports/devel/py-natsort/natsort-8.0.2/docs/
H A Dhowitworks.rst102 >>> import re
248 close. But because I am crazy and a glutton for punishment, I decided to see
294 >>> import re
471 ``re.split`` call in a ``try: except:`` block and handle the number specially
797 >>> a # doctest: +SKIP
799 >>> sorted(a) # doctest: +SKIP
860 >>> c # doctest: +SKIP
862 >>> sorted(c) # doctest: +SKIP
891 >>> # The below fails on OSX, so don't run doctest on darwin.
1047 >>> re.sub(strip_thousands, '', 'Sir, €1.234,50 please.', flags=re.X)
[all …]
/dports/math/py-networkx/networkx-2.6.3/
H A DCONTRIBUTING.rst141 time you're donating!).
150 close the issue when the PR is merged. For example, if the PR closes
175 .. code-block:: rst
181 .. code-block:: rst
292 .. code-block:: python
333 Use ``--doctest-modules`` to run doctests.
336 $ PYTHONPATH=. pytest --doctest-modules networkx
359 If you're **new to testing**, see existing test files for examples of things to do.
361 If you're not sure how to do this or are having trouble, submit your pull request
386 * Describe the feature that you're showcasing and link to other relevant parts of the
/dports/science/rdkit/rdkit-Release_2021_03_5/Docs/Book/
H A DGettingStartedInPython.rst41 .. doctest::
47 .. doctest::
56 .. doctest::
63 .. doctest::
275 software, it's essential that the mol block have atomic coordinates.
277 Generating a mol block for a molecule that does not have coordinates will, by
946 ``atomNote`` and ``bondNote`` and they will be placed automatically close to the
1359 They can also be labeled according by the number of that core-atom they're attached to:
2244 This can be demonstrated re-using the amide-bond formation reaction used
3320 | |believe that this is close. …
[all …]
/dports/lang/python-legacy/Python-2.7.18/Doc/library/
H A Ddifflib.rst166 ... sys.stdout.write(line) # doctest: +NORMALIZE_WHITESPACE
189 close matches are desired (typically a string), and *possibilities* is a list of
192 Optional argument *n* (default ``3``) is the maximum number of close matches to
301 ... sys.stdout.write(line) # doctest: +NORMALIZE_WHITESPACE
412 in the block. Then that block is extended as far as possible by matching
451 .. doctest::
564 sequences are close matches:
569 If you're only interested in where the sequences match,
572 >>> for block in s.get_matching_blocks():
758 # we're passing these as arguments to the diff function
[all …]
/dports/lang/python27/Python-2.7.18/Doc/library/
H A Ddifflib.rst166 ... sys.stdout.write(line) # doctest: +NORMALIZE_WHITESPACE
189 close matches are desired (typically a string), and *possibilities* is a list of
192 Optional argument *n* (default ``3``) is the maximum number of close matches to
301 ... sys.stdout.write(line) # doctest: +NORMALIZE_WHITESPACE
412 in the block. Then that block is extended as far as possible by matching
451 .. doctest::
564 sequences are close matches:
569 If you're only interested in where the sequences match,
572 >>> for block in s.get_matching_blocks():
758 # we're passing these as arguments to the diff function
[all …]
/dports/lang/python310/Python-3.10.1/Doc/library/
H A Dconfigparser.rst60 .. code-block:: ini
81 .. doctest::
101 the behavior is very close to what you would expect from a dictionary.
106 .. doctest::
276 .. code-block:: ini
339 .. code-block:: ini
374 .. code-block:: ini
386 .. code-block:: ini
646 .. code-block:: ini
776 >>> import re
[all …]
/dports/lang/python311/Python-3.11.0a3/Doc/library/
H A Dconfigparser.rst60 .. code-block:: ini
81 .. doctest::
101 the behavior is very close to what you would expect from a dictionary.
106 .. doctest::
276 .. code-block:: ini
339 .. code-block:: ini
374 .. code-block:: ini
386 .. code-block:: ini
646 .. code-block:: ini
776 >>> import re
[all …]
/dports/databases/py-gdbm/Python-3.8.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
616 .. code-block:: ini
746 >>> import re
[all …]
H A Dtokenize.rst157 .. code-block:: sh
195 we're only showing 12 digits, and the 13th isn't close to 5, the
198 >>> exec(s) #doctest: +ELLIPSIS
232 .. code-block:: shell-session
258 .. code-block:: shell-session
/dports/databases/py-sqlite3/Python-3.8.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
616 .. code-block:: ini
746 >>> import re
[all …]
/dports/lang/python-tools/Python-3.8.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
616 .. code-block:: ini
746 >>> import re
[all …]
/dports/lang/python37/Python-3.7.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
618 .. code-block:: ini
747 >>> import re
[all …]
/dports/lang/python38/Python-3.8.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
616 .. code-block:: ini
746 >>> import re
[all …]
/dports/lang/python39/Python-3.9.9/Doc/library/
H A Dconfigparser.rst60 .. code-block:: ini
81 .. doctest::
101 the behavior is very close to what you would expect from a dictionary.
106 .. doctest::
252 .. code-block:: ini
315 .. code-block:: ini
350 .. code-block:: ini
362 .. code-block:: ini
622 .. code-block:: ini
752 >>> import re
[all …]
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Doc/library/
H A Dconfigparser.rst55 .. code-block:: ini
76 .. doctest::
96 the behavior is very close to what you would expect from a dictionary.
101 .. doctest::
246 .. code-block:: ini
309 .. code-block:: ini
344 .. code-block:: ini
356 .. code-block:: ini
616 .. code-block:: ini
746 >>> import re
[all …]

12345678910>>...12