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 | 455 | send | ref | function | child.send("caplog.record_tuples\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 456 | expect_exact | ref | function | child.expect_exact(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 459 | sendeof | ref | function | child.sendeof()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 461 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 463 | test_set_trace_capturing_afterwards | def | function | def test_set_trace_capturing_afterwards(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
import pdb
def test_1():
pdb.set_trace()
def test_2():
print("hello")
assert 0
"""
)
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 464 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 474 | 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 | 475 | expect | ref | function | child.expect("test_1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 476 | send | ref | function | child.send("c\n")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 477 | expect | ref | function | child.expect("test_2")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 478 | expect | ref | function | child.expect("Captured")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 479 | expect | ref | function | child.expect("hello")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 480 | sendeof | ref | function | child.sendeof()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 482 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 484 | test_pdb_interaction_doctest | def | function | def test_pdb_interaction_doctest(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
def function_1():
'''
>>> i = 0
>>> assert i == 1
'''
"""
)
child = pytester.spawn_pytest("--docte... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 485 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 494 | spawn_pytest | ref | function | child = pytester.spawn_pytest("--doctest-modules --pdb %s" % p1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 495 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 497 | decode | ref | function | assert "UNEXPECTED EXCEPTION: AssertionError()" in child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 499 | sendline | ref | function | child.sendline("'i=%i.' % i")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 500 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 501 | decode | ref | function | assert "\r\n'i=0.'\r\n" in child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 503 | sendeof | ref | function | child.sendeof()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 504 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 508 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 510 | test_doctest_set_trace_quit | def | function | def test_doctest_set_trace_quit(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
def function_1():
'''
>>> __import__('pdb').set_trace()
'''
"""
)
# NOTE: does not use pytest.set_trace, but Python... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 511 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 521 | spawn_pytest | ref | function | child = pytester.spawn_pytest("--doctest-modules --pdb -s %s" % p1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 522 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 523 | sendline | ref | function | child.sendline("q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 524 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 531 | test_pdb_interaction_capturing_twice | def | function | def test_pdb_interaction_capturing_twice(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
import pytest
def test_1():
i = 0
print("hello17")
pytest.set_trace()
x = 3
print("hel... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 532 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 546 | 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 | 547 | expect | ref | function | child.expect(r"PDB set_trace \(IO-capturing turned off\)")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 548 | expect | ref | function | child.expect("test_1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 549 | expect | ref | function | child.expect("x = 3")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 550 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 551 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 552 | expect | ref | function | child.expect(r"PDB continue \(IO-capturing resumed\)")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 553 | expect | ref | function | child.expect(r"PDB set_trace \(IO-capturing turned off\)")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 554 | expect | ref | function | child.expect("x = 4")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 555 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 556 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 557 | expect | ref | function | child.expect("_ test_1 _")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 558 | expect | ref | function | child.expect("def test_1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 559 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 564 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 566 | test_pdb_with_injected_do_debug | def | function | def test_pdb_with_injected_do_debug(self, pytester: Pytester) -> None:
"""Simulates pdbpp, which injects Pdb into do_debug, and uses
self.__class__ in do_continue.
"""
p1 = pytester.makepyfile(
mytest="""
import pdb
import pytest
count... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 570 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 612 | spawn_pytest | ref | function | child = pytester.spawn_pytest("--pdbcls=mytest:CustomPdb %s" % str(p1))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 613 | expect | ref | function | child.expect(r"PDB set_trace \(IO-capturing turned off\)")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 614 | expect | ref | function | child.expect(r"\n\(Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 615 | sendline | ref | function | child.sendline("debug foo()")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 616 | expect | ref | function | child.expect("ENTERING RECURSIVE DEBUGGER")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 617 | expect | ref | function | child.expect(r"\n\(\(Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 618 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 619 | expect | ref | function | child.expect("LEAVING RECURSIVE DEBUGGER")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 625 | sendline | ref | function | child.sendline("debug 42")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 626 | sendline | ref | function | child.sendline("q")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 627 | expect | ref | function | child.expect("LEAVING RECURSIVE DEBUGGER")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 631 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 632 | expect | ref | function | child.expect(r"PDB continue \(IO-capturing resumed\)")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 633 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 639 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 641 | test_pdb_without_capture | def | function | def test_pdb_without_capture(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
import pytest
def test_1():
pytest.set_trace()
"""
)
child = pytester.spawn_pytest("-s %s" % p1)
child.expect(r">>> PDB set_trace ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 642 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 649 | spawn_pytest | ref | function | child = pytester.spawn_pytest("-s %s" % p1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 650 | expect | ref | function | child.expect(r">>> PDB set_trace >>>")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 651 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 652 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 653 | expect | ref | function | child.expect(r">>> PDB continue >>>")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 654 | expect | ref | function | child.expect("1 passed")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 655 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 657 | parametrize | ref | function | @pytest.mark.parametrize("capture_arg", ("", "-s", "-p no:capture"))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 658 | test_pdb_continue_with_recursive_debug | def | function | def test_pdb_continue_with_recursive_debug(
self, capture_arg, pytester: Pytester
) -> None:
"""Full coverage for do_debug without capturing.
This is very similar to test_pdb_interaction_continue_recursive in general,
but mocks out ``pdb.set_trace`` for providing more coverage.
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 666 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 720 | spawn_pytest | ref | function | child = pytester.spawn_pytest(f"--tb=short {p1} {capture_arg}")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 721 | expect | ref | function | child.expect("=== SET_TRACE ===")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 722 | decode | ref | function | before = child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 727 | sendline | ref | function | child.sendline("debug set_trace()")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 728 | expect | ref | function | child.expect("=== SET_TRACE_2 ===")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 729 | decode | ref | function | before = child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 731 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 732 | expect | ref | function | child.expect("=== SET_TRACE_3 ===")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 735 | decode | ref | function | before = child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 738 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 739 | expect | ref | function | child.expect("=== SET_TRACE_4 ===")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 740 | decode | ref | function | before = child.before.decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 742 | sendline | ref | function | child.sendline("c")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 743 | decode | ref | function | rest = child.read().decode("utf8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 750 | test_pdb_used_outside_test | def | function | def test_pdb_used_outside_test(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
import pytest
pytest.set_trace()
x = 5
"""
)
child = pytester.spawn(f"{sys.executable} {p1}")
child.expect("x = 5")
child.ex... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 751 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 758 | spawn | ref | function | child = pytester.spawn(f"{sys.executable} {p1}")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 759 | expect | ref | function | child.expect("x = 5")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 760 | expect | ref | function | child.expect("Pdb")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 761 | sendeof | ref | function | child.sendeof()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 762 | flush | ref | function | self.flush(child)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 764 | test_pdb_used_in_generate_tests | def | function | def test_pdb_used_in_generate_tests(self, pytester: Pytester) -> None:
p1 = pytester.makepyfile(
"""
import pytest
def pytest_generate_tests(metafunc):
pytest.set_trace()
x = 5
def test_foo(a):
pass
"""
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_debugging.py | testing/test_debugging.py | 765 | makepyfile | ref | function | p1 = pytester.makepyfile(
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.