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
181
test_doctest_unexpected_exception
def
function
def test_doctest_unexpected_exception(self, pytester: Pytester): pytester.maketxtfile( """ >>> i = 0 >>> 0 / i 2 """ ) result = pytester.runpytest("--doctest-modules") result.stdout.fnmatch_lines( [ "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
182
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
189
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
190
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
209
test_doctest_outcomes
def
function
def test_doctest_outcomes(self, pytester: Pytester): pytester.maketxtfile( test_skip=""" >>> 1 1 >>> import pytest >>> pytest.skip("") >>> 2 3 """, test_xfail=""" >>> import pytest ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
210
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
232
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
233
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
245
test_docstring_partial_context_around_error
def
function
def test_docstring_partial_context_around_error(self, pytester: Pytester): """Test that we show some context before the actual line of a failing doctest. """ pytester.makepyfile( ''' def foo(): """ text-line-1 te...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
249
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
271
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
272
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
286
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*text-line-2*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
287
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*text-line-after*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
289
test_docstring_full_context_around_error
def
function
def test_docstring_full_context_around_error(self, pytester: Pytester): """Test that we show the whole context before the actual line of a failing doctest, provided that the context is up to 10 lines long. """ pytester.makepyfile( ''' def foo(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
293
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
305
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
306
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
319
test_doctest_linedata_missing
def
function
def test_doctest_linedata_missing(self, pytester: Pytester): pytester.path.joinpath("hello.py").write_text( textwrap.dedent( """\ class Fun(object): @property def test(self): ''' ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
333
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
334
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
338
test_doctest_linedata_on_property
def
function
def test_doctest_linedata_on_property(self, pytester: Pytester): pytester.makepyfile( """ class Sample(object): @property def some_property(self): ''' >>> Sample().some_property 'another thing...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
339
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
351
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
352
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
368
test_doctest_no_linedata_on_overriden_property
def
function
def test_doctest_no_linedata_on_overriden_property(self, pytester: Pytester): pytester.makepyfile( """ class Sample(object): @property def some_property(self): ''' >>> Sample().some_property '...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
369
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
382
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
383
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
399
test_doctest_unex_importerror_only_txt
def
function
def test_doctest_unex_importerror_only_txt(self, pytester: Pytester): pytester.maketxtfile( """ >>> import asdalsdkjaslkdjasd >>> """ ) result = pytester.runpytest() # doctest is never executed because of error during hello.py collection ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
400
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
406
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
408
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
416
test_doctest_unex_importerror_with_module
def
function
def test_doctest_unex_importerror_with_module(self, pytester: Pytester): pytester.path.joinpath("hello.py").write_text( textwrap.dedent( """\ import asdalsdkjaslkdjasd """ ) ) pytester.maketxtfile( """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
424
maketxtfile
ref
function
pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
430
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
432
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
440
test_doctestmodule
def
function
def test_doctestmodule(self, pytester: Pytester): p = pytester.makepyfile( """ ''' >>> x = 1 >>> x == 1 _False ''' """ ) reprec = pytester.inline_run(p, "--doctest-modules") reprec.assertoutc...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
441
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
451
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
452
assertoutcome
ref
function
reprec.assertoutcome(failed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
454
test_doctestmodule_external_and_issue116
def
function
def test_doctestmodule_external_and_issue116(self, pytester: Pytester): p = pytester.mkpydir("hello") p.joinpath("__init__.py").write_text( textwrap.dedent( """\ def somefunc(): ''' >>> i = 0 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
455
mkpydir
ref
function
p = pytester.mkpydir("hello")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
468
runpytest
ref
function
result = pytester.runpytest(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
469
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
481
test_txtfile_failing
def
function
def test_txtfile_failing(self, pytester: Pytester): p = pytester.maketxtfile( """ >>> i = 0 >>> i + 1 2 """ ) result = pytester.runpytest(p, "-s") result.stdout.fnmatch_lines( [ "001 >>> i = 0", ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
482
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
489
runpytest
ref
function
result = pytester.runpytest(p, "-s")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
490
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
502
test_txtfile_with_fixtures
def
function
def test_txtfile_with_fixtures(self, pytester: Pytester): p = pytester.maketxtfile( """ >>> p = getfixture('tmp_path') >>> p.is_dir() _True """ ) reprec = pytester.inline_run(p) reprec.assertoutcome(passed=1) def test_txtfi...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
503
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
510
inline_run
ref
function
reprec = pytester.inline_run(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
511
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
513
test_txtfile_with_usefixtures_in_ini
def
function
def test_txtfile_with_usefixtures_in_ini(self, pytester: Pytester): pytester.makeini( """ [pytest] usefixtures = myfixture """ ) pytester.makeconftest( """ import pytest @pytest.fixture def myfixture(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
514
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
520
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
529
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
536
inline_run
ref
function
reprec = pytester.inline_run(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
537
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
539
test_doctestmodule_with_fixtures
def
function
def test_doctestmodule_with_fixtures(self, pytester: Pytester): p = pytester.makepyfile( """ ''' >>> p = getfixture('tmp_path') >>> p.is_dir() _True ''' """ ) reprec = pytester.inline_run(p, "--doctes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
540
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
549
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
550
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
552
test_doctestmodule_three_tests
def
function
def test_doctestmodule_three_tests(self, pytester: Pytester): p = pytester.makepyfile( """ ''' >>> p = getfixture('tmp_path') >>> p.is_dir() _True ''' def my_func(): ''' >>> magic = 42 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
553
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
576
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
577
assertoutcome
ref
function
reprec.assertoutcome(passed=3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
579
test_doctestmodule_two_tests_one_fail
def
function
def test_doctestmodule_two_tests_one_fail(self, pytester: Pytester): p = pytester.makepyfile( """ class MyClass(object): def bad_meth(self): ''' >>> magic = 42 >>> magic 0 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
580
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
597
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
598
assertoutcome
ref
function
reprec.assertoutcome(failed=1, passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
600
test_ignored_whitespace
def
function
def test_ignored_whitespace(self, pytester: Pytester): pytester.makeini( """ [pytest] doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE """ ) p = pytester.makepyfile( """ class MyClass(object): ''' ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
601
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
607
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
618
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
619
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
621
test_non_ignored_whitespace
def
function
def test_non_ignored_whitespace(self, pytester: Pytester): pytester.makeini( """ [pytest] doctest_optionflags = ELLIPSIS """ ) p = pytester.makepyfile( """ class MyClass(object): ''' >>> a = "...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
622
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
628
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
639
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
640
assertoutcome
ref
function
reprec.assertoutcome(failed=1, passed=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
642
test_ignored_whitespace_glob
def
function
def test_ignored_whitespace_glob(self, pytester: Pytester): pytester.makeini( """ [pytest] doctest_optionflags = ELLIPSIS NORMALIZE_WHITESPACE """ ) p = pytester.maketxtfile( xdoc=""" >>> a = "foo " >>> print(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
643
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
649
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
656
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
657
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
659
test_non_ignored_whitespace_glob
def
function
def test_non_ignored_whitespace_glob(self, pytester: Pytester): pytester.makeini( """ [pytest] doctest_optionflags = ELLIPSIS """ ) p = pytester.maketxtfile( xdoc=""" >>> a = "foo " >>> print(a) fo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
660
makeini
ref
function
pytester.makeini(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
666
maketxtfile
ref
function
p = pytester.maketxtfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
673
inline_run
ref
function
reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
674
assertoutcome
ref
function
reprec.assertoutcome(failed=1, passed=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
676
test_contains_unicode
def
function
def test_contains_unicode(self, pytester: Pytester): """Fix internal error with docstrings containing non-ascii characters.""" pytester.makepyfile( '''\ def foo(): """ >>> name = 'с' # not letter 'c' but instead Cyrillic 's'. 'a...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
678
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
687
runpytest
ref
function
result = pytester.runpytest("--doctest-modules")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
688
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["Got nothing", "* 1 failed in*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
690
test_ignore_import_errors_on_doctest
def
function
def test_ignore_import_errors_on_doctest(self, pytester: Pytester): p = pytester.makepyfile( """ import asdf def add_one(x): ''' >>> add_one(1) 2 ''' return x + 1 """ ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
691
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
704
inline_run
ref
function
reprec = pytester.inline_run(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
707
assertoutcome
ref
function
reprec.assertoutcome(skipped=1, failed=1, passed=0)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_doctest.py
testing/test_doctest.py
709
test_junit_report_for_doctest
def
function
def test_junit_report_for_doctest(self, pytester: Pytester): """#713: Fix --junit-xml option when used with --doctest-modules.""" p = pytester.makepyfile( """ def foo(): ''' >>> 1 + 1 3 ''' pass ...