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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 139 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 148 | runpytest | ref | function | result = pytester.runpytest(*args)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 149 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test.foo *", "*xdoc.txt *", "*2 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 150 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 151 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*test_normal.txt *", "*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 153 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 157 | test_encoding | def | function | def test_encoding(self, pytester, test_string, encoding):
"""Test support for doctest_encoding ini option."""
pytester.makeini(
"""
[pytest]
doctest_encoding={}
""".format(
encoding
)
)
doctest = """
... |
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 159 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 176 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 178 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(["*1 passed*"])
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 180 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 181 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 188 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 189 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 208 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 209 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 231 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 232 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 244 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 248 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 270 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 271 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 285 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*text-line-2*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 286 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*text-line-after*")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 288 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 292 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 304 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 305 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 318 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 332 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 333 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 337 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 338 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 350 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 351 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 367 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 368 | makepyfile | ref | function | pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 381 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 382 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 398 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 399 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 405 | runpytest | ref | function | result = pytester.runpytest()
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 407 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 415 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 423 | maketxtfile | ref | function | pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 429 | runpytest | ref | function | result = pytester.runpytest("--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 431 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 439 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 440 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 450 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 451 | assertoutcome | ref | function | reprec.assertoutcome(failed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 453 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 454 | mkpydir | ref | function | p = pytester.mkpydir("hello")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 467 | runpytest | ref | function | result = pytester.runpytest(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 468 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 480 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 481 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 488 | runpytest | ref | function | result = pytester.runpytest(p, "-s")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 489 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 501 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 502 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 509 | inline_run | ref | function | reprec = pytester.inline_run(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 510 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 512 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 513 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 519 | makeconftest | ref | function | pytester.makeconftest(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 528 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 535 | inline_run | ref | function | reprec = pytester.inline_run(p)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 536 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 538 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 539 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 548 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 549 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 551 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 552 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 575 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 576 | assertoutcome | ref | function | reprec.assertoutcome(passed=3)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 578 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 579 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 596 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 597 | assertoutcome | ref | function | reprec.assertoutcome(failed=1, passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 599 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 600 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 606 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 617 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 618 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 620 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 621 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 627 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 638 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-modules")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 639 | assertoutcome | ref | function | reprec.assertoutcome(failed=1, passed=0)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 641 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 642 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 648 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 655 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 656 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 658 | 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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 659 | makeini | ref | function | pytester.makeini(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 665 | maketxtfile | ref | function | p = pytester.maketxtfile(
|
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_doctest.py | testing/test_doctest.py | 672 | inline_run | ref | function | reprec = pytester.inline_run(p, "--doctest-glob=x*.txt")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.