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_debugging.py
testing/test_debugging.py
231
test_pdb_dont_print_empty_captured_stdout_and_stderr
def
function
def test_pdb_dont_print_empty_captured_stdout_and_stderr( self, pytester: Pytester ) -> None: p1 = pytester.makepyfile( """ def test_1(): assert _False """ ) child = pytester.spawn_pytest("--pdb %s" % p1) child.expect("Pdb")...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
234
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
240
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
241
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
242
decode
ref
function
output = child.before.decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
243
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
246
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
248
parametrize
ref
function
@pytest.mark.parametrize("showcapture", ["all", "no", "log"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
249
test_pdb_print_captured_logs
def
function
def test_pdb_print_captured_logs(self, pytester, showcapture: str) -> None: p1 = pytester.makepyfile( """ def test_1(): import logging logging.warn("get " + "rekt") assert _False """ ) child = pytester.spawn_pyte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
250
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
258
spawn_pytest
ref
function
child = pytester.spawn_pytest(f"--show-capture={showcapture} --pdb {p1}")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
260
expect
ref
function
child.expect("captured log")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
261
expect
ref
function
child.expect("get rekt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
262
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
263
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
264
decode
ref
function
rest = child.read().decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
266
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
268
test_pdb_print_captured_logs_nologging
def
function
def test_pdb_print_captured_logs_nologging(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_1(): import logging logging.warn("get " + "rekt") assert _False """ ) child = pytester.spawn_py...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
269
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
277
spawn_pytest
ref
function
child = pytester.spawn_pytest("--show-capture=all --pdb -p no:logging %s" % p1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
278
expect
ref
function
child.expect("get rekt")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
279
decode
ref
function
output = child.before.decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
281
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
282
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
283
decode
ref
function
rest = child.read().decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
285
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
287
test_pdb_interaction_exception
def
function
def test_pdb_interaction_exception(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pytest def globalfunc(): pass def test_1(): pytest.raises(ValueError, globalfunc) """ ) child = p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
288
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
297
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
298
expect
ref
function
child.expect(".*def test_1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
299
expect
ref
function
child.expect(".*pytest.raises.*globalfunc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
300
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
301
sendline
ref
function
child.sendline("globalfunc")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
302
expect
ref
function
child.expect(".*function")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
303
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
304
expect
ref
function
child.expect("1 failed")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
305
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
307
test_pdb_interaction_on_collection_issue181
def
function
def test_pdb_interaction_on_collection_issue181(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pytest xxx """ ) child = pytester.spawn_pytest("--pdb %s" % p1) # child.expect(".*import pytest.*") child.expect...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
308
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
314
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
316
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
317
sendline
ref
function
child.sendline("c")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
318
expect
ref
function
child.expect("1 error")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
319
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
321
test_pdb_interaction_on_internal_error
def
function
def test_pdb_interaction_on_internal_error(self, pytester: Pytester) -> None: pytester.makeconftest( """ def pytest_runtest_protocol(): 0/0 """ ) p1 = pytester.makepyfile("def test_func(): pass") child = pytester.spawn_pytest("--pdb %s"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
322
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
328
makepyfile
ref
function
p1 = pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
329
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
330
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
337
decode
ref
function
for x in child.before.decode().splitlines()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
344
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
345
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
347
test_pdb_prevent_ConftestImportFailure_hiding_exception
def
function
def test_pdb_prevent_ConftestImportFailure_hiding_exception( self, pytester: Pytester ) -> None: pytester.makepyfile("def test_func(): pass") sub_dir = pytester.path.joinpath("ns") sub_dir.mkdir() sub_dir.joinpath("conftest").with_suffix(".py").write_text( "im...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
350
makepyfile
ref
function
pytester.makepyfile("def test_func(): pass")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
351
joinpath
ref
function
sub_dir = pytester.path.joinpath("ns")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
353
joinpath
ref
function
sub_dir.joinpath("conftest").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
353
with_suffix
ref
function
sub_dir.joinpath("conftest").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
353
write_text
ref
function
sub_dir.joinpath("conftest").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
356
joinpath
ref
function
sub_dir.joinpath("test_file").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
356
with_suffix
ref
function
sub_dir.joinpath("test_file").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
356
write_text
ref
function
sub_dir.joinpath("test_file").with_suffix(".py").write_text(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
360
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess("--pdb", ".")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
361
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["-> import unknown"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
363
test_pdb_interaction_capturing_simple
def
function
def test_pdb_interaction_capturing_simple(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pytest def test_1(): i = 0 print("hello17") pytest.set_trace() i == 1 assert 0...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
364
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
375
spawn_pytest
ref
function
child = pytester.spawn_pytest(str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
376
expect
ref
function
child.expect(r"test_1\(\)")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
377
expect
ref
function
child.expect("i == 1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
378
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
379
sendline
ref
function
child.sendline("c")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
380
decode
ref
function
rest = child.read().decode("utf-8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
385
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
387
test_pdb_set_trace_kwargs
def
function
def test_pdb_set_trace_kwargs(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pytest def test_1(): i = 0 print("hello17") pytest.set_trace(header="== my_header ==") x = 3 ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
388
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
399
spawn_pytest
ref
function
child = pytester.spawn_pytest(str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
400
expect
ref
function
child.expect("== my_header ==")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
401
decode
ref
function
assert "PDB set_trace" not in child.before.decode()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
402
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
403
sendline
ref
function
child.sendline("c")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
404
decode
ref
function
rest = child.read().decode("utf-8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
408
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
410
test_pdb_set_trace_interception
def
function
def test_pdb_set_trace_interception(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pdb def test_1(): pdb.set_trace() """ ) child = pytester.spawn_pytest(str(p1)) child.expect("test_1") child....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
411
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
418
spawn_pytest
ref
function
child = pytester.spawn_pytest(str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
419
expect
ref
function
child.expect("test_1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
420
expect
ref
function
child.expect("Pdb")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
421
sendline
ref
function
child.sendline("q")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
422
decode
ref
function
rest = child.read().decode("utf8")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
426
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
428
test_pdb_and_capsys
def
function
def test_pdb_and_capsys(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ import pytest def test_1(capsys): print("hello1") pytest.set_trace() """ ) child = pytester.spawn_pytest(str(p1)) child...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
429
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
437
spawn_pytest
ref
function
child = pytester.spawn_pytest(str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
438
expect
ref
function
child.expect("test_1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
439
send
ref
function
child.send("capsys.readouterr()\n")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
440
expect
ref
function
child.expect("hello1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
441
sendeof
ref
function
child.sendeof()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
443
flush
ref
function
self.flush(child)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
445
test_pdb_with_caplog_on_pdb_invocation
def
function
def test_pdb_with_caplog_on_pdb_invocation(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """ def test_1(capsys, caplog): import logging logging.getLogger(__name__).warning("some_warning") assert 0 """ ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
446
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py
testing/test_debugging.py
454
spawn_pytest
ref
function
child = pytester.spawn_pytest("--pdb %s" % str(p1))