/dports/devel/pycharm-pro/pycharm-2020.2.3/plugins/python/helpers/pycharm/ |
H A D | docrunner.py | 16 re = import_system_module("re") variable 27 name = self.current_suite.name + test.source 31 if test.source.rfind(".") == -1: 32 name = self.current_suite.name + test.source 34 name = test.source 127 if hasattr(doctest, 'SKIP'): 138 exec(compile(example.source, filename, "single", 168 m1 = re.match(r'[^:]*:', example.exc_msg) 169 m2 = re.match(r'[^:]*:', exc_msg) 188 'Exception raised:\n' + doctest._indent(doctest._exception_traceback(exception)) [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/testing/web-platform/tests/tools/pytest/_pytest/ |
H A D | doctest.py | 85 example = doctestfailure.example 91 lineno = test.lineno + example.lineno + 1 102 lines = lines[example.lineno - 9:example.lineno + 1] 106 for line in example.source.splitlines(): 110 lines += checker.output_difference(example, 126 import doctest 176 import doctest 235 import re 245 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 246 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/www/firefox-legacy/firefox-52.8.0esr/python/pytest/_pytest/ |
H A D | doctest.py | 85 example = doctestfailure.example 91 lineno = test.lineno + example.lineno + 1 102 lines = lines[example.lineno - 9:example.lineno + 1] 106 for line in example.source.splitlines(): 110 lines += checker.output_difference(example, 126 import doctest 176 import doctest 235 import re 245 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 246 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/third_party/python/pytest/_pytest/ |
H A D | doctest.py | 105 example = doctestfailure.example 111 lineno = test.lineno + example.lineno + 1 122 lines = lines[example.lineno - 9:example.lineno + 1] 126 for line in example.source.splitlines(): 130 lines += checker.output_difference(example, 146 import doctest 195 import doctest 255 import re 265 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 266 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/lang/spidermonkey60/firefox-60.9.0/testing/web-platform/tests/tools/third_party/pytest/_pytest/ |
H A D | doctest.py | 113 example = doctestfailure.example 119 lineno = test.lineno + example.lineno + 1 130 lines = lines[max(example.lineno - 9, 0):example.lineno + 1] 134 for line in example.source.splitlines(): 138 lines += checker.output_difference(example, 154 import doctest 204 import doctest 264 import re 274 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 275 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/third_party/python/pytest/_pytest/ |
H A D | doctest.py | 144 def report_failure(self, out, test, example, got): argument 145 failure = doctest.DocTestFailure(test, example, got) 152 failure = doctest.UnexpectedException(test, example, exc_info) 225 example = failure.example 246 lines = lines[max(example.lineno - 9, 0):example.lineno + 1] 252 for line in example.source.splitlines(): 257 example, failure.got, report_choice 411 import re 421 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 422 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/third_party/python/pytest/_pytest/ |
H A D | doctest.py | 144 def report_failure(self, out, test, example, got): argument 145 failure = doctest.DocTestFailure(test, example, got) 152 failure = doctest.UnexpectedException(test, example, exc_info) 225 example = failure.example 246 lines = lines[max(example.lineno - 9, 0):example.lineno + 1] 252 for line in example.source.splitlines(): 257 example, failure.got, report_choice 411 import re 421 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 422 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/ |
H A D | doctest.py | 144 def report_failure(self, out, test, example, got): argument 145 failure = doctest.DocTestFailure(test, example, got) 152 failure = doctest.UnexpectedException(test, example, exc_info) 225 example = failure.example 246 lines = lines[max(example.lineno - 9, 0):example.lineno + 1] 252 for line in example.source.splitlines(): 257 example, failure.got, report_choice 411 import re 421 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 422 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/lang/spidermonkey78/firefox-78.9.0/third_party/python/pytest/src/_pytest/ |
H A D | doctest.py | 144 def report_failure(self, out, test, example, got): argument 145 failure = doctest.DocTestFailure(test, example, got) 152 failure = doctest.UnexpectedException(test, example, exc_info) 225 example = failure.example 246 lines = lines[max(example.lineno - 9, 0):example.lineno + 1] 252 for line in example.source.splitlines(): 257 example, failure.got, report_choice 411 import re 421 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 422 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/textproc/py-sphinx/Sphinx-3.5.2/build/lib/sphinx/ext/ |
H A D | doctest.py | 12 import doctest 13 import re 45 blankline_re = re.compile(r'^\s*<BLANKLINE>', re.MULTILINE) 46 doctestopt_re = re.compile(r'#\s*doctest:.+$', re.MULTILINE) 277 return example.source.splitlines(True) 437 if not source: 495 example = doctest.Example(testcode.code, '', lineno=testcode.lineno) 496 examples.append(example) 547 example = doctest.Example(code[0].code, output, exc_msg=exc_msg, 549 test = doctest.DocTest([example], {}, group.name, [all …]
|
/dports/textproc/py-sphinx/Sphinx-3.5.2/sphinx/ext/ |
H A D | doctest.py | 12 import doctest 13 import re 45 blankline_re = re.compile(r'^\s*<BLANKLINE>', re.MULTILINE) 46 doctestopt_re = re.compile(r'#\s*doctest:.+$', re.MULTILINE) 277 return example.source.splitlines(True) 437 if not source: 495 example = doctest.Example(testcode.code, '', lineno=testcode.lineno) 496 examples.append(example) 547 example = doctest.Example(code[0].code, output, exc_msg=exc_msg, 549 test = doctest.DocTest([example], {}, group.name, [all …]
|
/dports/textproc/py-sphinx/stage/usr/local/lib/python3.8/site-packages/sphinx/ext/ |
H A D | doctest.py | 12 import doctest 13 import re 45 blankline_re = re.compile(r'^\s*<BLANKLINE>', re.MULTILINE) 46 doctestopt_re = re.compile(r'#\s*doctest:.+$', re.MULTILINE) 277 return example.source.splitlines(True) 437 if not source: 495 example = doctest.Example(testcode.code, '', lineno=testcode.lineno) 496 examples.append(example) 547 example = doctest.Example(code[0].code, output, exc_msg=exc_msg, 549 test = doctest.DocTest([example], {}, group.name, [all …]
|
/dports/devel/py-pytest/pytest-4.6.11/src/_pytest/ |
H A D | doctest.py | 152 def report_failure(self, out, test, example, got): argument 153 failure = doctest.DocTestFailure(test, example, got) 162 failure = doctest.UnexpectedException(test, example, exc_info) 235 example = failure.example 256 lines = lines[max(example.lineno - 9, 0) : example.lineno + 1] 262 for line in example.source.splitlines(): 267 example, failure.got, report_choice 477 import re 487 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 488 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) [all …]
|
/dports/www/firefox-esr/firefox-91.8.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/ |
H A D | doctest.py | 196 failure = doctest.DocTestFailure(test, example, got) 213 failure = doctest.UnexpectedException(test, example, exc_info) 321 example = failure.example 345 lines = lines[max(example.lineno - 9, 0) : example.lineno + 1] 351 for line in example.source.splitlines(): 573 import re 580 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 581 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) 582 _number_re = re.compile( 602 re.VERBOSE, [all …]
|
/dports/www/firefox/firefox-99.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/ |
H A D | doctest.py | 196 failure = doctest.DocTestFailure(test, example, got) 213 failure = doctest.UnexpectedException(test, example, exc_info) 321 example = failure.example 345 lines = lines[max(example.lineno - 9, 0) : example.lineno + 1] 351 for line in example.source.splitlines(): 573 import re 580 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 581 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) 582 _number_re = re.compile( 602 re.VERBOSE, [all …]
|
/dports/mail/thunderbird/thunderbird-91.8.0/testing/web-platform/tests/tools/third_party/pytest/src/_pytest/ |
H A D | doctest.py | 196 failure = doctest.DocTestFailure(test, example, got) 213 failure = doctest.UnexpectedException(test, example, exc_info) 321 example = failure.example 345 lines = lines[max(example.lineno - 9, 0) : example.lineno + 1] 351 for line in example.source.splitlines(): 573 import re 580 _unicode_literal_re = re.compile(r"(\W|^)[uU]([rR]?[\'\"])", re.UNICODE) 581 _bytes_literal_re = re.compile(r"(\W|^)[bB]([rR]?[\'\"])", re.UNICODE) 582 _number_re = re.compile( 602 re.VERBOSE, [all …]
|
/dports/math/py-PyWavelets/pywt-1.2.0/util/ |
H A D | refguide_check.py | 29 import re 33 import doctest 125 res = re.match(pattern, line) 293 … m = re.match(r'.*Error in "math" directive:.*unknown option: "label"', " ".join(lines), re.S) 420 def report_start(self, out, test, example): argument 421 self._checker._source = example.source 422 return doctest.DocTestRunner.report_start(self, out, test, example) 428 self, out, test, example, got) 433 self, out, test, example, exc_info) 686 parser = doctest.DocTestParser() [all …]
|
/dports/misc/py-pyEDFlib/pyEDFlib-0.1.23/util/ |
H A D | refguide_check.py | 29 import re 33 import doctest 119 res = re.match(pattern, line) 287 … m = re.match(r'.*Error in "math" directive:.*unknown option: "label"', " ".join(lines), re.S) 414 def report_start(self, out, test, example): argument 415 self._checker._source = example.source 416 return doctest.DocTestRunner.report_start(self, out, test, example) 422 self, out, test, example, got) 427 self, out, test, example, exc_info) 680 parser = doctest.DocTestParser() [all …]
|
/dports/science/py-scipy/scipy-1.7.1/tools/ |
H A D | refguide_check.py | 26 import doctest 31 import re 509 class DTRunner(doctest.DocTestRunner): 525 self._checker._source = example.source 526 return doctest.DocTestRunner.report_start(self, out, test, example) 531 return doctest.DocTestRunner.report_success(self, out, test, example, got) 542 out, test, example, exc_info) 549 class Checker(doctest.OutputChecker): 551 vanilla = doctest.OutputChecker() 816 parser = doctest.DocTestParser() [all …]
|
/dports/math/py-numpy/numpy-1.20.3/tools/ |
H A D | refguide_check.py | 29 import doctest 33 import re 233 res = re.match(pattern, line) 504 … m = re.match(r'.*Error in "math" directive:.*unknown option: "label"', " ".join(lines), re.S) 647 def report_start(self, out, test, example): argument 648 self._checker._source = example.source 649 return doctest.DocTestRunner.report_start(self, out, test, example) 654 return doctest.DocTestRunner.report_success(self, out, test, example, got) 659 self, out, test, example, exc_info) 989 parser = doctest.DocTestParser() [all …]
|
/dports/devel/py-zope.testing/zope.testing-4.1.0/ |
H A D | PKG-INFO | 142 Once we have the form we're interested in, we can check form 289 checker. Let's look at an example. In this example, we have some times and 334 >>> import re 363 >>> source = '''\ 373 >>> example = doctest.Example(source, want_ellided) 422 >>> source = '''\ 426 >>> example = doctest.Example(source, '\n') 482 >>> source = '''\ 485 >>> example = doctest.Example(source, want) 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 | 142 Once we have the form we're interested in, we can check form 289 checker. Let's look at an example. In this example, we have some times and 334 >>> import re 363 >>> source = '''\ 373 >>> example = doctest.Example(source, want_ellided) 422 >>> source = '''\ 426 >>> example = doctest.Example(source, '\n') 482 >>> source = '''\ 485 >>> example = doctest.Example(source, want) 775 example, if you're testing something that uses getevent, you'd want to [all …]
|
/dports/devel/cquery/cquery-20180718/third_party/doctest/doc/markdown/ |
H A D | stringification.md | 8 …the chances are you may already provide this for your own purposes. If you're not familiar with th… 30 ## ```doctest::toString``` overload 38 doctest::String toString(const udt& value) { 46 ## ```doctest::StringMaker<T>``` specialisation 51 namespace doctest { 62 …nd returns a ```doctest::String```. It can appear anywhere in the code - it doesn't have to be in … 66 return doctest::String(ex.message()); 75 // adding a lambda - the signature required is `doctest::String(exception_type)` 76 doctest::registerExceptionTranslator<int>([](int in){ return doctest::toString(in); }); 79 …it - everything that auto-registers in doctest works in a top-to-bottom way for a single translati… [all …]
|
/dports/devel/py-zope.schema/zope.schema-4.2.2/docs/ |
H A D | narr.rst | 35 .. doctest:: 56 .. doctest:: 70 .. doctest:: 77 .. doctest:: 85 .. doctest:: 92 .. doctest:: 100 .. doctest:: 145 >>> import re 160 ... constraint=re.compile("\d{5,5}(-\d{4,4})?$").match) 222 specified by a source outside the schema. The selection list [all …]
|
/dports/devel/doctest/doctest-2.4.7/doc/markdown/ |
H A D | stringification.md | 6 For stringifying enums checkout [this issue](https://github.com/onqtam/doctest/issues/121). 10 …the chances are you may already provide this for your own purposes. If you're not familiar with th… 32 ## ```doctest::toString``` overload 40 doctest::String toString(const udt& value) { 48 ## ```doctest::StringMaker<T>``` specialisation 53 namespace doctest { 68 return doctest::String(ex.message()); 77 // adding a lambda - the signature required is `doctest::String(exception_type)` 78 doctest::registerExceptionTranslator<int>([](int in){ return doctest::toString(in); }); 81 …it - everything that auto-registers in doctest works in a top-to-bottom way for a single translati… [all …]
|