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
934
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
940
get_write_msg
ref
function
line = tw_mock.get_write_msg(3)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
949
get_write_msg
ref
function
line = tw_mock.get_write_msg(11)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
953
test_toterminal_long_missing_source
def
function
def test_toterminal_long_missing_source( self, importasmod, tmp_path: Path, tw_mock ) -> None: mod = importasmod( """ def g(x): raise ValueError(x) def f(): g(3) """ ) excinfo = pytest.raises(ValueError, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
956
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
964
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
967
getrepr
ref
function
repr = excinfo.getrepr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
968
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
973
get_write_msg
ref
function
line = tw_mock.get_write_msg(2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
981
get_write_msg
ref
function
line = tw_mock.get_write_msg(9)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
985
test_toterminal_long_incomplete_source
def
function
def test_toterminal_long_incomplete_source( self, importasmod, tmp_path: Path, tw_mock ) -> None: mod = importasmod( """ def g(x): raise ValueError(x) def f(): g(3) """ ) excinfo = pytest.raises(ValueErro...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
988
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
996
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
999
getrepr
ref
function
repr = excinfo.getrepr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,000
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,005
get_write_msg
ref
function
line = tw_mock.get_write_msg(2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,013
get_write_msg
ref
function
line = tw_mock.get_write_msg(9)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,017
test_toterminal_long_filenames
def
function
def test_toterminal_long_filenames( self, importasmod, tw_mock, monkeypatch: MonkeyPatch ) -> None: mod = importasmod( """ def f(): raise ValueError() """ ) excinfo = pytest.raises(ValueError, mod.f) path = Path(mod.__file__...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,020
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,026
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
1,028
chdir
ref
function
monkeypatch.chdir(path.parent)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,029
getrepr
ref
function
repr = excinfo.getrepr(abspath=False)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,030
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,031
bestrelpath
ref
function
x = bestrelpath(Path.cwd(), path)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,033
get_write_msg
ref
function
msg = tw_mock.get_write_msg(-2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,037
getrepr
ref
function
repr = excinfo.getrepr(abspath=True)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,038
toterminal
ref
function
repr.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,039
get_write_msg
ref
function
msg = tw_mock.get_write_msg(-2)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,044
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,047
param
ref
function
pytest.param(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,064
test_format_excinfo
def
function
def test_format_excinfo(self, reproptions: Dict[str, Any]) -> None: def bar(): assert _False, "some error" def foo(): bar() # using inline functions as opposed to importasmod so we get source code lines # in the tracebacks (otherwise getinspect doesn't find ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,065
bar
def
function
def bar(): assert _False, "some error" def foo(): bar() # using inline functions as opposed to importasmod so we get source code lines # in the tracebacks (otherwise getinspect doesn't find the source code). with pytest.raises(AssertionError) as excinfo:...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,068
foo
def
function
def foo(): bar() # using inline functions as opposed to importasmod so we get source code lines # in the tracebacks (otherwise getinspect doesn't find the source code). with pytest.raises(AssertionError) as excinfo: foo() file = io.StringIO() tw =...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,069
bar
ref
function
bar()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,073
raises
ref
function
with pytest.raises(AssertionError) as excinfo:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,074
foo
ref
function
foo()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,076
TerminalWriter
ref
function
tw = TerminalWriter(file=file)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,077
getrepr
ref
function
repr = excinfo.getrepr(**reproptions)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,078
toterminal
ref
function
repr.toterminal(tw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,079
getvalue
ref
function
assert file.getvalue()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,081
test_traceback_repr_style
def
function
def test_traceback_repr_style(self, importasmod, tw_mock): mod = importasmod( """ def f(): g() def g(): h() def h(): i() def i(): raise ValueError() """ ) excin...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,082
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,094
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
1,096
set_repr_style
ref
function
excinfo.traceback[1].set_repr_style("short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,097
set_repr_style
ref
function
excinfo.traceback[2].set_repr_style("short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,098
getrepr
ref
function
r = excinfo.getrepr(style="long")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,099
toterminal
ref
function
r.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,106
get_write_msg
ref
function
msg = tw_mock.get_write_msg(4)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,110
get_write_msg
ref
function
tw_mock.get_write_msg(7)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,113
get_write_msg
ref
function
tw_mock.get_write_msg(10)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,122
get_write_msg
ref
function
msg = tw_mock.get_write_msg(19)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,126
test_exc_chain_repr
def
function
def test_exc_chain_repr(self, importasmod, tw_mock): mod = importasmod( """ class Err(Exception): pass def f(): try: g() except Exception as e: raise Err() from e final...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,127
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,145
raises
ref
function
excinfo = pytest.raises(AttributeError, mod.f)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,146
getrepr
ref
function
r = excinfo.getrepr(style="long")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,147
toterminal
ref
function
r.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,155
get_write_msg
ref
function
line = tw_mock.get_write_msg(5)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,164
get_write_msg
ref
function
line = tw_mock.get_write_msg(13)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,180
get_write_msg
ref
function
line = tw_mock.get_write_msg(25)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,197
get_write_msg
ref
function
line = tw_mock.get_write_msg(38)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,206
get_write_msg
ref
function
line = tw_mock.get_write_msg(46)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,210
parametrize
ref
function
@pytest.mark.parametrize("mode", ["from_none", "explicit_suppress"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,211
test_exc_repr_chain_suppression
def
function
def test_exc_repr_chain_suppression(self, importasmod, mode, tw_mock): """Check that exc repr does not show chained exceptions in Python 3. - When the exception is raised with "from None" - Explicitly suppressed with "chain=_False" to ExceptionInfo.getrepr(). """ raise_suffix...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,217
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,230
raises
ref
function
excinfo = pytest.raises(AttributeError, mod.f)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,231
getrepr
ref
function
r = excinfo.getrepr(style="long", chain=mode != "explicit_suppress")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,232
toterminal
ref
function
r.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,245
get_write_msg
ref
function
line = tw_mock.get_write_msg(8)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,250
parametrize
ref
function
@pytest.mark.parametrize(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,253
param
ref
function
pytest.param(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,258
param
ref
function
pytest.param(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,265
test_exc_chain_repr_without_traceback
def
function
def test_exc_chain_repr_without_traceback(self, importasmod, reason, description): """ Handle representation of exception chains where one of the exceptions doesn't have a real traceback, such as those raised in a subprocess submitted by the multiprocessing module (#1984). ""...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,272
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,286
raises
ref
function
with pytest.raises(RuntimeError) as excinfo:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,287
f
ref
function
mod.f()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,293
getrepr
ref
function
r = excinfo.getrepr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,295
TerminalWriter
ref
function
tw = TerminalWriter(file=file)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,297
toterminal
ref
function
r.toterminal(tw)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,299
LineMatcher
ref
function
matcher = LineMatcher(file.getvalue().splitlines())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,299
getvalue
ref
function
matcher = LineMatcher(file.getvalue().splitlines())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,300
fnmatch_lines
ref
function
matcher.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,310
test_exc_chain_repr_cycle
def
function
def test_exc_chain_repr_cycle(self, importasmod, tw_mock): mod = importasmod( """ class Err(Exception): pass def fail(): return 0 / 0 def reraise(): try: fail() except ZeroDivi...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,311
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,329
raises
ref
function
excinfo = pytest.raises(ZeroDivisionError, mod.unreraise)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,330
getrepr
ref
function
r = excinfo.getrepr(style="short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,331
toterminal
ref
function
r.toterminal(tw_mock)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,352
test_exec_type_error_filter
def
function
def test_exec_type_error_filter(self, importasmod): """See #7742""" mod = importasmod( """\ def f(): exec("a = 1", {}, []) """ ) with pytest.raises(TypeError) as excinfo: mod.f() # previously crashed with `Attrib...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,354
importasmod
ref
function
mod = importasmod(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,360
raises
ref
function
with pytest.raises(TypeError) as excinfo:
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,361
f
ref
function
mod.f()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,366
parametrize
ref
function
@pytest.mark.parametrize("style", ["short", "long"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,367
parametrize
ref
function
@pytest.mark.parametrize("encoding", [None, "utf8", "utf16"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,368
test_repr_traceback_with_unicode
def
function
def test_repr_traceback_with_unicode(style, encoding): if encoding is None: msg: Union[str, bytes] = "☹" else: msg = "☹".encode(encoding) try: raise RuntimeError(msg) except RuntimeError: e_info = ExceptionInfo.from_current() formatter = FormattedExcinfo(style=style) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,376
from_current
ref
function
e_info = ExceptionInfo.from_current()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,377
FormattedExcinfo
ref
function
formatter = FormattedExcinfo(style=style)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,378
repr_traceback
ref
function
repr_traceback = formatter.repr_traceback(e_info)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,382
test_cwd_deleted
def
function
def test_cwd_deleted(pytester: Pytester) -> None: pytester.makepyfile( """ import os def test(tmp_path): os.chdir(tmp_path) tmp_path.unlink() assert _False """ ) result = pytester.runpytest() result.stdout.fnmatch_lines(["* 1 failed in *"]...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,383
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,393
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/code/test_excinfo.py
testing/code/test_excinfo.py
1,394
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["* 1 failed in *"])