fname
stringlengths
63
176
rel_fname
stringclasses
706 values
line
int64
-1
4.5k
name
stringlengths
1
81
kind
stringclasses
2 values
category
stringclasses
2 values
info
stringlengths
0
77.9k
⌀
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
711
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
721
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules", "--junit-xml=junit.xml")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
722
assertoutcome
ref
function
reprec.assertoutcome(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
724
test_unicode_doctest
def
function
def test_unicode_doctest(self, pytester: Pytester): """ Test case for issue 2434: DecodeError on Python 2 when doctest contains non-ascii characters. """ p = pytester.maketxtfile( test_unicode_doctest=""" .. doctest:: >>> print("Hi\\n\...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
729
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
741
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
742
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
746
test_unicode_doctest_module
def
function
def test_unicode_doctest_module(self, pytester: Pytester): """ Test case for issue 2434: DecodeError on Python 2 when doctest docstring contains non-ascii characters. """ p = pytester.makepyfile( test_unicode_doctest_module=""" def fix_bad_unicode(text...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
751
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
761
runpytest
ref
function
result = pytester.runpytest(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
762
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
764
test_print_unicode_value
def
function
def test_print_unicode_value(self, pytester: Pytester): """ Test case for issue 3583: Printing Unicode in doctest under Python 2.7 doesn't work """ p = pytester.maketxtfile( test_print_unicode_value=r""" Here is a doctest:: >>> print('...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
769
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
777
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
778
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 passed *"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
780
test_reportinfo
def
function
def test_reportinfo(self, pytester: Pytester): """Make sure that DoctestItem.reportinfo() returns lineno.""" p = pytester.makepyfile( test_reportinfo=""" def foo(x): ''' >>> foo('a') 'b' ''' ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
782
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
792
inline_genitems
ref
function
items, reprec = pytester.inline_genitems(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
793
reportinfo
ref
function
reportinfo = items[0].reportinfo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
796
test_valid_setup_py
def
function
def test_valid_setup_py(self, pytester: Pytester): """ Test to make sure that pytest ignores valid setup.py files when ran with --doctest-modules """ p = pytester.makepyfile( setup=""" from setuptools import setup, find_packages setup(name=...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
801
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
811
runpytest
ref
function
result = pytester.runpytest(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
812
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 0 items*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
814
test_main_py_does_not_cause_import_errors
def
function
def test_main_py_does_not_cause_import_errors(self, pytester: Pytester): p = pytester.copy_example("doctest/main_py") result = pytester.runpytest(p, "--doctest-modules") result.stdout.fnmatch_lines(["*collected 2 items*", "*1 failed, 1 passed*"]) def test_invalid_setup_py(self, pytester...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
815
copy_example
ref
function
p = pytester.copy_example("doctest/main_py")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
816
runpytest
ref
function
result = pytester.runpytest(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
817
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 2 items*", "*1 failed, 1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
819
test_invalid_setup_py
def
function
def test_invalid_setup_py(self, pytester: Pytester): """ Test to make sure that pytest reads setup.py files that are not used for python packages when ran with --doctest-modules """ p = pytester.makepyfile( setup=""" def test_foo(): ret...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
824
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
830
runpytest
ref
function
result = pytester.runpytest(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
831
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*collected 1 item*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
834
TestLiterals
def
class
test_allow_unicode test_allow_bytes test_unicode_string test_bytes_literal test_number_re test_number_precision test_number_non_matches test_number_and_allow_unicode
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
835
parametrize
ref
function
@pytest.mark.parametrize("config_mode", ["ini", "comment"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
836
test_allow_unicode
def
function
def test_allow_unicode(self, pytester, config_mode): """Test that doctests which output unicode work in all python versions tested by pytest when the ALLOW_UNICODE option is used (either in the ini file or by an inline comment). """ if config_mode == "ini": pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
842
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
852
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
860
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
871
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
872
assertoutcome
ref
function
reprec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
874
parametrize
ref
function
@pytest.mark.parametrize("config_mode", ["ini", "comment"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
875
test_allow_bytes
def
function
def test_allow_bytes(self, pytester, config_mode): """Test that doctests which output bytes work in all python versions tested by pytest when the ALLOW_BYTES option is used (either in the ini file or by an inline comment)(#1287). """ if config_mode == "ini": pytes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
881
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
891
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
899
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
910
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
911
assertoutcome
ref
function
reprec.assertoutcome(passed=2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
913
test_unicode_string
def
function
def test_unicode_string(self, pytester: Pytester): """Test that doctests which output unicode fail in Python 2 when the ALLOW_UNICODE option is not used. The same test should pass in Python 3. """ pytester.maketxtfile( test_doc=""" >>> b'12'.decode('as...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
918
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
924
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
925
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
927
test_bytes_literal
def
function
def test_bytes_literal(self, pytester: Pytester): """Test that doctests which output bytes fail in Python 3 when the ALLOW_BYTES option is not used. (#1287). """ pytester.maketxtfile( test_doc=""" >>> b'foo' 'foo' """ ) repr...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
931
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
937
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
938
assertoutcome
ref
function
reprec.assertoutcome(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
940
test_number_re
def
function
def test_number_re(self) -> None: _number_re = _get_checker()._number_re # type: ignore for s in [ "1.", "+1.", "-1.", ".1", "+.1", "-.1", "0.1", "+0.1", "-0.1", "1e5", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
941
_get_checker
ref
function
_number_re = _get_checker()._number_re # type: ignore
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
965
approx
ref
function
assert float(m.group()) == pytest.approx(float(s))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
970
parametrize
ref
function
@pytest.mark.parametrize("config_mode", ["ini", "comment"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
971
test_number_precision
def
function
def test_number_precision(self, pytester, config_mode): """Test the NUMBER option.""" if config_mode == "ini": pytester.makeini( """ [pytest] doctest_optionflags = NUMBER """ ) comment = "" el...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
974
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
984
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,041
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,042
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,044
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,062
param
ref
function
pytest.param("'3.1416'", "'3.14'", marks=pytest.mark.xfail),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,065
test_number_non_matches
def
function
def test_number_non_matches(self, pytester, expression, output): pytester.maketxtfile( test_doc=""" >>> {expression} #doctest: +NUMBER {output} """.format( expression=expression, output=output ) ) reprec = pytester.i...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,066
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,074
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,075
assertoutcome
ref
function
reprec.assertoutcome(passed=0, failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,077
test_number_and_allow_unicode
def
function
def test_number_and_allow_unicode(self, pytester: Pytester): pytester.maketxtfile( test_doc=""" >>> from collections import namedtuple >>> T = namedtuple('T', 'a b c') >>> T(a=0.2330000001, b=u'str', c=b'bytes') # doctest: +ALLOW_UNICODE, +ALLOW_BYTES, +NUMBER...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,078
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,086
inline_run
ref
function
reprec = pytester.inline_run()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,087
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,090
TestDoctestSkips
def
class
makedoctest test_one_skipped test_one_skipped_failed test_all_skipped test_vacuous_all_skipped test_continue_on_failure test_skipping_wrapped_test
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,096
fixture
ref
function
@pytest.fixture(params=["text", "module"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,097
makedoctest
def
function
def makedoctest(self, pytester, request): def makeit(doctest): mode = request.param if mode == "text": pytester.maketxtfile(doctest) else: assert mode == "module" pytester.makepyfile('"""\n%s"""' % doctest) return m...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,098
makeit
def
function
def makeit(doctest): mode = request.param if mode == "text": pytester.maketxtfile(doctest) else: assert mode == "module" pytester.makepyfile('"""\n%s"""' % doctest) return makeit def test_one_skipped(self, pytester...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,101
maketxtfile
ref
function
pytester.maketxtfile(doctest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,104
makepyfile
ref
function
pytester.makepyfile('"""\n%s"""' % doctest)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,108
test_one_skipped
def
function
def test_one_skipped(self, pytester, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 4 """ ) reprec = pytester.inline_run("--doctest-modules") reprec.assertoutcome(passed=1) def test_one_s...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,109
makedoctest
ref
function
makedoctest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,117
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,118
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,120
test_one_skipped_failed
def
function
def test_one_skipped_failed(self, pytester, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 200 """ ) reprec = pytester.inline_run("--doctest-modules") reprec.assertoutcome(failed=1) def t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,121
makedoctest
ref
function
makedoctest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,129
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,130
assertoutcome
ref
function
reprec.assertoutcome(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,132
test_all_skipped
def
function
def test_all_skipped(self, pytester, makedoctest): makedoctest( """ >>> 1 + 1 # doctest: +SKIP 2 >>> 2 + 2 # doctest: +SKIP 200 """ ) reprec = pytester.inline_run("--doctest-modules") reprec.assertoutcome(skipped=1...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,133
makedoctest
ref
function
makedoctest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,141
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,142
assertoutcome
ref
function
reprec.assertoutcome(skipped=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,144
test_vacuous_all_skipped
def
function
def test_vacuous_all_skipped(self, pytester, makedoctest): makedoctest("") reprec = pytester.inline_run("--doctest-modules") reprec.assertoutcome(passed=0, skipped=0) def test_continue_on_failure(self, pytester: Pytester): pytester.maketxtfile( test_something=""" ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,145
makedoctest
ref
function
makedoctest("")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,146
inline_run
ref
function
reprec = pytester.inline_run("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,147
assertoutcome
ref
function
reprec.assertoutcome(passed=0, skipped=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,149
test_continue_on_failure
def
function
def test_continue_on_failure(self, pytester: Pytester): pytester.maketxtfile( test_something=""" >>> i = 5 >>> def foo(): ... raise ValueError('error1') >>> foo() >>> i >>> i + 2 7 >>> i + 1 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,150
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,162
runpytest
ref
function
result = pytester.runpytest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,165
assert_outcomes
ref
function
result.assert_outcomes(passed=0, failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
1,168
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(