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_conftest.py
testing/test_conftest.py
387
PytestPluginManager
ref
function
conftest = PytestPluginManager()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
392
_getconftestmodules
ref
function
conftest._getconftestmodules(sub, importmode="prepend", rootpath=pytester.path),
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
398
test_fixture_dependency
def
function
def test_fixture_dependency(pytester: Pytester) -> None: pytester.makeconftest("") pytester.path.joinpath("__init__.py").touch() sub = pytester.mkdir("sub") sub.joinpath("__init__.py").touch() sub.joinpath("conftest.py").write_text( textwrap.dedent( """\ import pytest...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
399
makeconftest
ref
function
pytester.makeconftest("")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
439
runpytest
ref
function
result = pytester.runpytest("sub")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
440
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
443
test_conftest_found_with_double_dash
def
function
def test_conftest_found_with_double_dash(pytester: Pytester) -> None: sub = pytester.mkdir("sub") sub.joinpath("conftest.py").write_text( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--hello-world", action="store_true") """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
455
runpytest
ref
function
result = pytester.runpytest(str(p) + "::test_hello", "-h")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
456
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
463
TestConftestVisibility
def
class
_setup_tree test_parsefactories_relative_node_ids
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
464
_setup_tree
def
function
def _setup_tree(self, pytester: Pytester) -> Dict[str, Path]: # for issue616 # example mostly taken from: # https://mail.python.org/pipermail/pytest-dev/2014-September/002617.html runner = pytester.mkdir("empty") package = pytester.mkdir("package") package.joinpath("conftes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
531
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
556
test_parsefactories_relative_node_ids
def
function
def test_parsefactories_relative_node_ids( self, pytester: Pytester, chdir: str, testarg: str, expect_ntests_passed: int ) -> None: """#616""" dirs = self._setup_tree(pytester) print("pytest run in cwd: %s" % (dirs[chdir].relative_to(pytester.path))) print("pytestarg ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
560
_setup_tree
ref
function
dirs = self._setup_tree(pytester)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
565
inline_run
ref
function
reprec = pytester.inline_run(testarg, "-q", "--traceconfig")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
566
assertoutcome
ref
function
reprec.assertoutcome(passed=expect_ntests_passed)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
569
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
572
test_search_conftest_up_to_inifile
def
function
def test_search_conftest_up_to_inifile( pytester: Pytester, confcutdir: str, passed: int, error: int
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
614
runpytest
ref
function
result = pytester.runpytest(*args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
620
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(match)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
623
test_issue1073_conftest_special_objects
def
function
def test_issue1073_conftest_special_objects(pytester: Pytester) -> None: pytester.makeconftest( """\ class DontTouchMe(object): def __getattr__(self, x): raise Exception('cant touch me') x = DontTouchMe() """ ) pytester.makepyfile( """\ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
624
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
633
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
639
runpytest
ref
function
res = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
643
test_conftest_exception_handling
def
function
def test_conftest_exception_handling(pytester: Pytester) -> None: pytester.makeconftest( """\ raise ValueError() """ ) pytester.makepyfile( """\ def test_some(): pass """ ) res = pytester.runpytest() assert res.ret == 4 assert "rais...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
644
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
649
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
655
runpytest
ref
function
res = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
660
test_hook_proxy
def
function
def test_hook_proxy(pytester: Pytester) -> None: """Session's gethookproxy() would cache conftests incorrectly (#2016). It was decided to remove the cache altogether. """ pytester.makepyfile( **{ "root/demo-0/test_foo1.py": "def test1(): pass", "root/demo-a/test_foo2.py":...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
664
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
676
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
677
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
682
test_required_option_help
def
function
def test_required_option_help(pytester: Pytester) -> None: pytester.makeconftest("assert 0") x = pytester.mkdir("x") x.joinpath("conftest.py").write_text( textwrap.dedent( """\ def pytest_addoption(parser): parser.addoption("--xyz", action="store_true", requir...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
683
makeconftest
ref
function
pytester.makeconftest("assert 0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
693
runpytest
ref
function
result = pytester.runpytest("-h", x)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_conftest.py
testing/test_conftest.py
694
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*argument --xyz is required*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
22
fixture
ref
function
@pytest.fixture(autouse=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
23
pdb_env
def
function
def pdb_env(request): if "pytester" in request.fixturenames: # Disable pdb++ with inner tests. pytester = request.getfixturevalue("pytester") pytester._monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
26
getfixturevalue
ref
function
pytester = request.getfixturevalue("pytester")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
27
setenv
ref
function
pytester._monkeypatch.setenv("PDBPP_HIJACK_PDB", "0")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
30
runpdb_and_get_report
def
function
def runpdb_and_get_report(pytester: Pytester, source: str): p = pytester.makepyfile(source) result = pytester.runpytest_inprocess("--pdb", p) reports = result.reprec.getreports("pytest_runtest_logreport") # type: ignore[attr-defined] assert len(reports) == 3, reports # setup/call/teardown return r...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
31
makepyfile
ref
function
p = pytester.makepyfile(source)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
32
runpytest_inprocess
ref
function
result = pytester.runpytest_inprocess("--pdb", p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
33
getreports
ref
function
reports = result.reprec.getreports("pytest_runtest_logreport") # type: ignore[attr-defined]
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
39
custom_pdb_calls
def
function
def custom_pdb_calls() -> List[str]: called = [] # install dummy debugger class and track which methods were called on it class _CustomPdb: quitting = _False def __init__(self, *args, **kwargs): called.append("init") def reset(self): called.append("reset") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
43
_CustomPdb
def
class
__init__ reset interaction
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
49
reset
def
function
def reset(self): called.append("reset") def interaction(self, *args): called.append("interaction") _pytest._CustomPdb = _CustomPdb # type: ignore return called
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
52
interaction
def
function
def interaction(self, *args): called.append("interaction") _pytest._CustomPdb = _CustomPdb # type: ignore return called
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
60
custom_debugger_hook
def
function
def custom_debugger_hook(): called = [] # install dummy debugger class and track which methods were called on it class _CustomDebugger: def __init__(self, *args, **kwargs): called.append("init") def reset(self): called.append("reset") def interaction(self, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
64
_CustomDebugger
def
class
__init__ reset interaction set_trace
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
68
reset
def
function
def reset(self): called.append("reset") def interaction(self, *args): called.append("interaction") _pytest._CustomPdb = _CustomPdb # type: ignore return called
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
71
interaction
def
function
def interaction(self, *args): called.append("interaction") _pytest._CustomPdb = _CustomPdb # type: ignore return called
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
74
set_trace
def
function
def set_trace(self, frame): print("**CustomDebugger**") called.append("set_trace") _pytest._CustomDebugger = _CustomDebugger # type: ignore yield called del _pytest._CustomDebugger # type: ignore
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
83
TestPDB
def
class
pdblist test_pdb_on_fail test_pdb_on_xfail test_pdb_on_skip test_pdb_on_BdbQuit test_pdb_on_KeyboardInterrupt flush test_pdb_unittest_postmortem test_pdb_unittest_skip test_pdb_print_captured_stdout_and_stderr test_pdb_dont_print_empty_captured_stdout_and_stderr test_pdb_print_captured_logs test_pdb_print_captured_logs...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
85
pdblist
def
function
def pdblist(self, request): monkeypatch = request.getfixturevalue("monkeypatch") pdblist = [] def mypdb(*args): pdblist.append(args) plugin = request.config.pluginmanager.getplugin("debugging") monkeypatch.setattr(plugin, "post_mortem", mypdb) return pdb...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
86
getfixturevalue
ref
function
monkeypatch = request.getfixturevalue("monkeypatch")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
89
mypdb
def
function
def mypdb(*args): pdblist.append(args) plugin = request.config.pluginmanager.getplugin("debugging") monkeypatch.setattr(plugin, "post_mortem", mypdb) return pdblist def test_pdb_on_fail(self, pytester: Pytester, pdblist) -> None: rep = runpdb_and_get_report( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
92
getplugin
ref
function
plugin = request.config.pluginmanager.getplugin("debugging")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
96
test_pdb_on_fail
def
function
def test_pdb_on_fail(self, pytester: Pytester, pdblist) -> None: rep = runpdb_and_get_report( pytester, """ def test_func(): assert 0 """, ) assert rep.failed assert len(pdblist) == 1 tb = _pytest._code.Traceback(pdb...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
97
runpdb_and_get_report
ref
function
rep = runpdb_and_get_report(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
106
Traceback
ref
function
tb = _pytest._code.Traceback(pdblist[0][0])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
109
test_pdb_on_xfail
def
function
def test_pdb_on_xfail(self, pytester: Pytester, pdblist) -> None: rep = runpdb_and_get_report( pytester, """ import pytest @pytest.mark.xfail def test_func(): assert 0 """, ) assert "xfail" in rep.keywords ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
110
runpdb_and_get_report
ref
function
rep = runpdb_and_get_report(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
122
test_pdb_on_skip
def
function
def test_pdb_on_skip(self, pytester, pdblist) -> None: rep = runpdb_and_get_report( pytester, """ import pytest def test_func(): pytest.skip("hello") """, ) assert rep.skipped assert len(pdblist) == 0 def te...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
123
runpdb_and_get_report
ref
function
rep = runpdb_and_get_report(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
134
test_pdb_on_BdbQuit
def
function
def test_pdb_on_BdbQuit(self, pytester, pdblist) -> None: rep = runpdb_and_get_report( pytester, """ import bdb def test_func(): raise bdb.BdbQuit """, ) assert rep.failed assert len(pdblist) == 0 def test_p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
135
runpdb_and_get_report
ref
function
rep = runpdb_and_get_report(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
146
test_pdb_on_KeyboardInterrupt
def
function
def test_pdb_on_KeyboardInterrupt(self, pytester, pdblist) -> None: rep = runpdb_and_get_report( pytester, """ def test_func(): raise KeyboardInterrupt """, ) assert rep.failed assert len(pdblist) == 1 @staticmethod ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
147
runpdb_and_get_report
ref
function
rep = runpdb_and_get_report(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
158
flush
def
function
def flush(child): if child.isalive(): # Read if the test has not (e.g. test_pdb_unittest_skip). child.read() child.wait() assert not child.isalive() def test_pdb_unittest_postmortem(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
159
isalive
ref
function
if child.isalive():
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
163
isalive
ref
function
assert not child.isalive()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
165
test_pdb_unittest_postmortem
def
function
def test_pdb_unittest_postmortem(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import unittest class Blub(unittest.TestCase): def tearDown(self): self.filename = None def test_false(self): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
166
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
177
spawn_pytest
ref
function
child = pytester.spawn_pytest(f"--pdb {p1}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
178
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
179
sendline
ref
function
child.sendline("p self.filename")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
180
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
181
decode
ref
function
rest = child.read().decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
183
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
185
test_pdb_unittest_skip
def
function
def test_pdb_unittest_skip(self, pytester: Pytester) -> None: """Test for issue #2137""" p1 = pytester.makepyfile( """ import unittest @unittest.skipIf(_True, 'Skipping also with pdb active') class MyTestCase(unittest.TestCase): def tes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
187
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
196
spawn_pytest
ref
function
child = pytester.spawn_pytest(f"-rs --pdb {p1}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
197
expect
ref
function
child.expect("Skipping also with pdb active")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
198
expect_exact
ref
function
child.expect_exact("= 1 skipped in")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
199
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
200
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
202
test_pdb_print_captured_stdout_and_stderr
def
function
def test_pdb_print_captured_stdout_and_stderr(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_1(): import sys sys.stderr.write("get\\x20rekt") print("get\\x20rekt") assert _False de...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
203
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
215
spawn_pytest
ref
function
child = pytester.spawn_pytest("--pdb %s" % p1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
216
expect
ref
function
child.expect("captured stdout")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
217
expect
ref
function
child.expect("get rekt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
218
expect
ref
function
child.expect("captured stderr")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
219
expect
ref
function
child.expect("get rekt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
220
expect
ref
function
child.expect("traceback")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
221
expect
ref
function
child.expect("def test_1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
222
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
223
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
224
decode
ref
function
rest = child.read().decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
229
flush
ref
function
self.flush(child)