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/code/test_excinfo.py
testing/code/test_excinfo.py
578
FormattedExcinfo
ref
function
p = FormattedExcinfo(showlocals=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
579
repr_locals
ref
function
truncated_reprlocals = p.repr_locals(loc)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
584
FormattedExcinfo
ref
function
q = FormattedExcinfo(showlocals=True, truncate_locals=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
585
repr_locals
ref
function
full_reprlocals = q.repr_locals(loc)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
590
test_repr_tracebackentry_lines
def
function
def test_repr_tracebackentry_lines(self, importasmod) -> None: mod = importasmod( """ def func1(): raise ValueError("hello\\nworld") """ ) excinfo = pytest.raises(ValueError, mod.func1) excinfo.traceback = excinfo.traceback.filter() ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
591
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
597
raises
ref
function
excinfo = pytest.raises(ValueError, mod.func1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
599
FormattedExcinfo
ref
function
p = FormattedExcinfo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
600
repr_traceback_entry
ref
function
reprtb = p.repr_traceback_entry(excinfo.traceback[-1])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
608
FormattedExcinfo
ref
function
p = FormattedExcinfo(showlocals=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
609
repr_traceback_entry
ref
function
repr_entry = p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
623
test_repr_tracebackentry_lines2
def
function
def test_repr_tracebackentry_lines2(self, importasmod, tw_mock) -> None: mod = importasmod( """ def func1(m, x, y, z): raise ValueError("hello\\nworld") """ ) excinfo = pytest.raises(ValueError, mod.func1, "m" * 90, 5, 13, "z" * 120) ex...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
624
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
630
raises
ref
function
excinfo = pytest.raises(ValueError, mod.func1, "m" * 90, 5, 13, "z" * 120)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
633
FormattedExcinfo
ref
function
p = FormattedExcinfo(funcargs=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
634
repr_args
ref
function
reprfuncargs = p.repr_args(entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
641
FormattedExcinfo
ref
function
p = FormattedExcinfo(funcargs=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
642
repr_traceback_entry
ref
function
repr_entry = p.repr_traceback_entry(entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
645
toterminal
ref
function
repr_entry.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
650
test_repr_tracebackentry_lines_var_kw_args
def
function
def test_repr_tracebackentry_lines_var_kw_args(self, importasmod, tw_mock) -> None: mod = importasmod( """ def func1(x, *y, **z): raise ValueError("hello\\nworld") """ ) excinfo = pytest.raises(ValueError, mod.func1, "a", "b", c="d") ex...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
651
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
657
raises
ref
function
excinfo = pytest.raises(ValueError, mod.func1, "a", "b", c="d")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
660
FormattedExcinfo
ref
function
p = FormattedExcinfo(funcargs=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
661
repr_args
ref
function
reprfuncargs = p.repr_args(entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
667
FormattedExcinfo
ref
function
p = FormattedExcinfo(funcargs=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
668
repr_traceback_entry
ref
function
repr_entry = p.repr_traceback_entry(entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
671
toterminal
ref
function
repr_entry.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
674
test_repr_tracebackentry_short
def
function
def test_repr_tracebackentry_short(self, importasmod) -> None: mod = importasmod( """ def func1(): raise ValueError("hello") def entry(): func1() """ ) excinfo = pytest.raises(ValueError, mod.entry) p = Forma...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
675
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
683
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
684
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
685
repr_traceback_entry
ref
function
reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
694
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
695
repr_traceback_entry
ref
function
reprtb = p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
703
test_repr_tracebackentry_no
def
function
def test_repr_tracebackentry_no(self, importasmod): mod = importasmod( """ def func1(): raise ValueError("hello") def entry(): func1() """ ) excinfo = pytest.raises(ValueError, mod.entry) p = FormattedExcinfo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
704
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
712
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
713
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="no")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
714
repr_traceback_entry
ref
function
p.repr_traceback_entry(excinfo.traceback[-2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
716
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="no")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
717
repr_traceback_entry
ref
function
reprentry = p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
722
test_repr_traceback_tbfilter
def
function
def test_repr_traceback_tbfilter(self, importasmod): mod = importasmod( """ def f(x): raise ValueError(x) def entry(): f(0) """ ) excinfo = pytest.raises(ValueError, mod.entry) p = FormattedExcinfo(tbfilter=_...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
723
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
731
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
732
FormattedExcinfo
ref
function
p = FormattedExcinfo(tbfilter=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
733
repr_traceback
ref
function
reprtb = p.repr_traceback(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
735
FormattedExcinfo
ref
function
p = FormattedExcinfo(tbfilter=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
736
repr_traceback
ref
function
reprtb = p.repr_traceback(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
739
test_traceback_short_no_source
def
function
def test_traceback_short_no_source(self, importasmod, monkeypatch) -> None: mod = importasmod( """ def func1(): raise ValueError("hello") def entry(): func1() """ ) excinfo = pytest.raises(ValueError, mod.entry) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
740
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
748
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
752
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
753
repr_traceback_entry
ref
function
reprtb = p.repr_traceback_entry(excinfo.traceback[-2])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
755
FormattedExcinfo
ref
function
last_p = FormattedExcinfo(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
756
repr_traceback_entry
ref
function
last_reprtb = last_p.repr_traceback_entry(excinfo.traceback[-1], excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
758
undo
ref
function
monkeypatch.undo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
764
test_repr_traceback_and_excinfo
def
function
def test_repr_traceback_and_excinfo(self, importasmod) -> None: mod = importasmod( """ def f(x): raise ValueError(x) def entry(): f(0) """ ) excinfo = pytest.raises(ValueError, mod.entry) styles: Tuple[_Trac...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
765
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
773
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
777
FormattedExcinfo
ref
function
p = FormattedExcinfo(style=style)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
778
repr_traceback
ref
function
reprtb = p.repr_traceback(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
782
repr_excinfo
ref
function
repr = p.repr_excinfo(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
792
test_repr_traceback_with_invalid_cwd
def
function
def test_repr_traceback_with_invalid_cwd(self, importasmod, monkeypatch) -> None: mod = importasmod( """ def f(x): raise ValueError(x) def entry(): f(0) """ ) excinfo = pytest.raises(ValueError, mod.entry) p...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
793
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
801
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
803
FormattedExcinfo
ref
function
p = FormattedExcinfo(abspath=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
809
raiseos
def
function
def raiseos(): nonlocal raised upframe = sys._getframe().f_back assert upframe is not None if upframe.f_code.co_name == "_makepath": # Only raise with expected calls, but not via e.g. inspect for # py38-windows. rais...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
818
orig_path_cwd
ref
function
return orig_path_cwd()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
821
_makepath
ref
function
assert p._makepath(Path(__file__)) == __file__
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
823
repr_traceback
ref
function
repr_tb = p.repr_traceback(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
825
LineMatcher
ref
function
matcher = LineMatcher(str(repr_tb).splitlines())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
826
fnmatch_lines
ref
function
matcher.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
843
test_repr_excinfo_addouterr
def
function
def test_repr_excinfo_addouterr(self, importasmod, tw_mock): mod = importasmod( """ def entry(): raise ValueError() """ ) excinfo = pytest.raises(ValueError, mod.entry) repr = excinfo.getrepr() repr.addsection("title", "content"...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
844
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
850
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
851
getrepr
ref
function
repr = excinfo.getrepr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
852
addsection
ref
function
repr.addsection("title", "content")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
853
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
857
test_repr_excinfo_reprcrash
def
function
def test_repr_excinfo_reprcrash(self, importasmod) -> None: mod = importasmod( """ def entry(): raise ValueError() """ ) excinfo = pytest.raises(ValueError, mod.entry) repr = excinfo.getrepr() assert repr.reprcrash is not None ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
858
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
864
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
865
getrepr
ref
function
repr = excinfo.getrepr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
872
test_repr_traceback_recursion
def
function
def test_repr_traceback_recursion(self, importasmod): mod = importasmod( """ def rec2(x): return rec1(x+1) def rec1(x): return rec2(x-1) def entry(): rec1(42) """ ) excinfo = pytest.raises...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
873
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
883
raises
ref
function
excinfo = pytest.raises(RuntimeError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
886
FormattedExcinfo
ref
function
p = FormattedExcinfo(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
887
repr_traceback
ref
function
reprtb = p.repr_traceback(excinfo)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
891
test_reprexcinfo_getrepr
def
function
def test_reprexcinfo_getrepr(self, importasmod) -> None: mod = importasmod( """ def f(x): raise ValueError(x) def entry(): f(0) """ ) excinfo = pytest.raises(ValueError, mod.entry) styles: Tuple[_TracebackSt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
892
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
900
raises
ref
function
excinfo = pytest.raises(ValueError, mod.entry)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
905
getrepr
ref
function
repr = excinfo.getrepr(style=style, showlocals=showlocals)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
912
test_reprexcinfo_unicode
def
function
def test_reprexcinfo_unicode(self): from _pytest._code.code import TerminalRepr class MyRepr(TerminalRepr): def toterminal(self, tw: TerminalWriter) -> None: tw.line("я") x = str(MyRepr()) assert x == "я" def test_toterminal_long(self, importasmod, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
915
MyRepr
def
class
toterminal
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
916
toterminal
def
function
def toterminal(self, tw: TerminalWriter) -> None: tw.line("я") x = str(MyRepr()) assert x == "я" def test_toterminal_long(self, importasmod, tw_mock): mod = importasmod( """ def g(x): raise ValueError(x) def f(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
917
line
ref
function
tw.line("я")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
919
MyRepr
ref
function
x = str(MyRepr())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
922
test_toterminal_long
def
function
def test_toterminal_long(self, importasmod, tw_mock): mod = importasmod( """ def g(x): raise ValueError(x) def f(): g(3) """ ) excinfo = pytest.raises(ValueError, mod.f) excinfo.traceback = excinfo.traceback....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
923
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
931
raises
ref
function
excinfo = pytest.raises(ValueError, mod.f)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
933
getrepr
ref
function
repr = excinfo.getrepr()