/dports/devel/ipython/ipython-7.29.0/IPython/testing/plugin/ |
H A D | ipdoctest.py | 23 import doctest 27 import re 177 random_re = re.compile(r'#\s*random\s+') 371 re.MULTILINE | re.VERBOSE) 374 re.MULTILINE | re.VERBOSE) 386 block = _ip.input_transformer_manager.transform_cell(source) 387 if len(block.splitlines()) == 1: 388 return _ip.prefilter(block) 390 return block 666 optionflags = doctest.NORMALIZE_WHITESPACE | doctest.ELLIPSIS [all …]
|
/dports/devel/ipython5/ipython-5.10.0/IPython/testing/plugin/ |
H A D | ipdoctest.py | 22 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/science/py-obspy/obspy-1.2.2/obspy/io/focmec/ |
H A D | core.py | 16 import re 51 with open(filename, 'rb') as fh: 87 with open(filename, "rb") as fh: 158 match = re.match(pattern_polarity_summary, line) 247 for block in blocks: 249 block, polarity_count) 290 pattern = re.compile(r'^ *(P|S[HV]) Polarity error at *([a-zA-Z]+.*)') 294 match = re.match(pattern, line) 301 if re.match(pattern_summary, line) or not line.strip(): 383 import doctest [all …]
|
/dports/devel/py-zope.configuration/zope.configuration-4.1.0/docs/api/ |
H A D | xmlconfig.rst | 10 .. doctest:: 22 .. doctest:: 35 .. doctest:: 71 .. doctest:: 150 If we open configure.zcml, we'll get that file: 152 .. doctest:: 163 But if we open foo.zcml, we'll get foo.zcml.in, since there isn't a 166 .. doctest:: 173 Make sure other IOErrors are re-raised. We need to do this in a 174 try-except block because different errors are raised on Windows and [all …]
|
/dports/biology/seqan-apps/seqan-seqan-v2.4.0/util/py_lib/ |
H A D | pyratemp.py | 183 import re 396 f = open(filename, 'rb') 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/textproc/py-nltk/nltk-3.4.1/nltk/test/ |
H A D | corpus.doctest | 646 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 1581 but every time a new block is read, the block's initial token is added 1583 block.) 1675 We're done with the test corpus: 1873 >>> l1 = f1.open(encoding='utf-8').read().split() [all …]
|
/dports/astro/py-astropy/astropy-5.0/docs/development/ |
H A D | testguide.rst | 210 Testing for open files 220 pytest --open-files 379 .. code-block:: python 478 f = open(DATAFILE, 'rb') 717 :ref:`flag <python:re-syntax>` 718 to the underlying ``re.search``, as in the example below:: 751 block:: 875 .. code-block:: none 887 .. code-block:: none 1006 .. code-block:: none [all …]
|
/dports/www/webpy/web.py-0.62/web/ |
H A D | template.py | 36 from io import open 414 block = "" 418 block += "\n" 424 return block, text 659 import re 661 rx = re.compile("^", re.M) 1094 with open(path, encoding="utf-8") as tmpl_file: 1209 text = open(path, encoding="utf-8").read() 1222 Template(open(path, encoding="utf-8").read(), path) 1728 import doctest [all …]
|
/dports/graphics/py-graphviz/graphviz-0.10.1/docs/ |
H A D | manual.rst | 47 >>> dot #doctest: +ELLIPSIS 76 >>> print(dot.source) # doctest: +NORMALIZE_WHITESPACE 99 Passing ``view=True`` will automatically open the resulting (PDF, PNG, SVG, 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 496 >>> g.view(tempfile.mktemp('.gv')) # doctest: +SKIP [all …]
|
/dports/devel/py-zope.testing/zope.testing-4.1.0/ |
H A D | PKG-INFO | 79 be extracted in order to re-submit it as part of a subsequent request. 142 Once we have the form we're interested in, we can check form 334 >>> import re 337 ... (re.compile('[0-9]*[.][0-9]* seconds'), '<SOME NUMBER OF> seconds'), 338 ... (re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'), 501 ... (re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'), 597 >>> foo = open('Data.fs', 'w').write('xxx') 694 may be because you're testing interaction with an external system or 774 you can create you're own custom ``wait`` utilities. For 775 example, if you're testing something that uses getevent, you'd want to [all …]
|
/dports/devel/py-zope.testing/zope.testing-4.1.0/src/zope.testing.egg-info/ |
H A D | PKG-INFO | 79 be extracted in order to re-submit it as part of a subsequent request. 142 Once we have the form we're interested in, we can check form 334 >>> import re 337 ... (re.compile('[0-9]*[.][0-9]* seconds'), '<SOME NUMBER OF> seconds'), 338 ... (re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'), 501 ... (re.compile('at 0x[0-9a-f]+'), 'at <SOME ADDRESS>'), 597 >>> foo = open('Data.fs', 'w').write('xxx') 694 may be because you're testing interaction with an external system or 774 you can create you're own custom ``wait`` utilities. For 775 example, if you're testing something that uses getevent, you'd want to [all …]
|
/dports/databases/py-motor/motor-1.0/doc/ |
H A D | tutorial-tornado.rst | 52 .. doctest:: 61 .. code-block:: bash 90 .. doctest:: before-inserting-2000-docs 97 .. doctest:: before-inserting-2000-docs 103 .. doctest:: before-inserting-2000-docs 117 From an open client, you can get a reference to a particular database with 120 .. doctest:: before-inserting-2000-docs 130 Now that we can create a client and get a database, we're ready to start 164 .. doctest:: before-inserting-2000-docs 178 .. doctest:: before-inserting-2000-docs [all …]
|
/dports/graphics/py-scikit-image/scikit-image-0.19.0/ |
H A D | INSTALL.rst | 19 - `You're looking to contribute to scikit-image <#installing-scikit-image-for-contributors>`_. 43 .. code-block:: sh 85 Prerequisites to a pip install: You're able to use your system's command line to 104 .. code-block:: sh 115 .. code-block:: sh 142 .. code-block:: sh 152 - You're likely to get an older version. 230 `please open an issue on GitHub <https://github.com/scikit-image/scikit-image/issues/new>`_. 252 .. code-block:: 392 Use ``--doctest-modules`` to run doctests. For example, run all tests and all [all …]
|
/dports/databases/py-gdbm/Python-3.8.12/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/lang/python37/Python-3.7.12/Doc/library/ |
H A D | tokenize.rst | 106 Use :func:`.open` to open Python source files: it uses 110 .. function:: open(filename) 146 .. code-block:: sh 184 we're only showing 12 digits, and the 13th isn't close to 5, the 187 >>> exec(s) #doctest: +ELLIPSIS 221 .. code-block:: shell-session 247 .. code-block:: shell-session 276 with tokenize.open('hello.py') as f: 285 with open('hello.py', 'rb') as f:
|
/dports/lang/python38/Python-3.8.12/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/lang/python310/Python-3.10.1/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/lang/python311/Python-3.11.0a3/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/lang/python-tools/Python-3.8.12/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/lang/python39/Python-3.9.9/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/databases/py-sqlite3/Python-3.8.12/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/x11-toolkits/py-tkinter/Python-3.8.12/Doc/library/ |
H A D | tokenize.rst | 117 Use :func:`.open` to open Python source files: it uses 121 .. function:: open(filename) 157 .. 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 287 with tokenize.open('hello.py') as f: 296 with open('hello.py', 'rb') as f:
|
/dports/biology/py-biopython/biopython-1.79/Doc/Tutorial/ |
H A D | chapter_align.tex | 795 by column. This lets you do this as a way to remove a block of columns: 926 All the command line wrappers we're going to talk about in this chapter follow the same style. 1019 interpreted as a new line and a tab -- which is why we're put a letter 1408 new line or a tab -- which is why we're put a letter ``r'' at the start for a raw string. 1942 A & - & query left open gap score \\ 1947 G & - & query internal open gap score \\ 1952 G & - & query internal open gap score \\ 1954 - & C & target internal open gap score \\ 1959 - & C & target internal open gap score \\ 1961 - & T & target right open gap score \\ [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/pytest/doc/en/ |
H A D | usage.rst | 232 .. code-block:: ini 252 .. code-block:: python 261 .. code-block:: xml 296 .. code-block:: xml 331 .. code-block:: xml 405 .. code-block:: xml 433 `open an issue <https://github.com/pytest-dev/pytest/issues>`_. 468 Example: to disable loading the plugin ``doctest``, which is responsible for 469 executing doctest tests from text files, invoke pytest like this:: 471 pytest -p no:doctest [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/pytest/doc/en/ |
H A D | usage.rst | 232 .. code-block:: ini 252 .. code-block:: python 261 .. code-block:: xml 296 .. code-block:: xml 331 .. code-block:: xml 405 .. code-block:: xml 433 `open an issue <https://github.com/pytest-dev/pytest/issues>`_. 468 Example: to disable loading the plugin ``doctest``, which is responsible for 469 executing doctest tests from text files, invoke pytest like this:: 471 pytest -p no:doctest [all …]
|