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_terminal.py
testing/test_terminal.py
1,113
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*short test summary*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,116
test_pass_output_reporting
def
function
def test_pass_output_reporting(pytester: Pytester) -> None: pytester.makepyfile( """ def setup_module(): print("setup_module") def teardown_module(): print("teardown_module") def test_pass_has_output(): print("Four score and seven years ago...") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,117
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,132
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,137
runpytest
ref
function
result = pytester.runpytest("-rPp")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,138
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,156
test_color_yes
def
function
def test_color_yes(pytester: Pytester, color_mapping) -> None: p1 = pytester.makepyfile( """ def fail(): assert 0 def test_this(): fail() """ ) result = pytester.runpytest("--color=yes", str(p1)) result.stdout.fnmatch_lines( color_mapping....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,157
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,166
runpytest
ref
function
result = pytester.runpytest("--color=yes", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,167
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,168
format_for_fnmatch
ref
function
color_mapping.format_for_fnmatch(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,193
runpytest
ref
function
result = pytester.runpytest("--color=yes", "--tb=short", str(p1))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,194
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,195
format_for_fnmatch
ref
function
color_mapping.format_for_fnmatch(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,215
test_color_no
def
function
def test_color_no(pytester: Pytester) -> None: pytester.makepyfile("def test_this(): assert 1") result = pytester.runpytest("--color=no") assert "test session starts" in result.stdout.str() result.stdout.no_fnmatch_line("*\x1b[1m*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,216
makepyfile
ref
function
pytester.makepyfile("def test_this(): assert 1")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,217
runpytest
ref
function
result = pytester.runpytest("--color=no")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,219
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*\x1b[1m*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,222
parametrize
ref
function
@pytest.mark.parametrize("verbose", [True, False])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,223
test_color_yes_collection_on_non_atty
def
function
def test_color_yes_collection_on_non_atty(pytester: Pytester, verbose) -> None: """#1397: Skip collect progress report when working on non-terminals.""" pytester.makepyfile( """ import pytest @pytest.mark.parametrize('i', range(10)) def test_this(i): assert 1 """ ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,225
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,236
runpytest
ref
function
result = pytester.runpytest(*args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,239
no_fnmatch_line
ref
function
result.stdout.no_fnmatch_line("*collecting 10 items*")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,245
test_getreportopt
def
function
def test_getreportopt() -> None: from _pytest.terminal import _REPORTCHARS_DEFAULT class FakeConfig: class Option: reportchars = _REPORTCHARS_DEFAULT disable_warnings = _False option = Option() config = cast(Config, FakeConfig()) assert _REPORTCHARS_DEFAULT ==...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,248
FakeConfig
def
class
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,249
Option
def
class
__init__ args
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,253
Option
ref
function
option = Option()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,255
FakeConfig
ref
function
config = cast(Config, FakeConfig())
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,260
getreportopt
ref
function
assert getreportopt(config) == "wfE"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,263
getreportopt
ref
function
assert getreportopt(config) == "wsf"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,266
getreportopt
ref
function
assert getreportopt(config) == "sfxw"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,269
getreportopt
ref
function
assert getreportopt(config) == "wsxXEf"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,272
getreportopt
ref
function
assert getreportopt(config) == "w"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,275
getreportopt
ref
function
assert getreportopt(config) == "wfE"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,278
getreportopt
ref
function
assert getreportopt(config) == "wx"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,283
getreportopt
ref
function
assert getreportopt(config) == "sxXEf"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,286
getreportopt
ref
function
assert getreportopt(config) == "sfx"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,289
getreportopt
ref
function
assert getreportopt(config) == "sfx"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,292
getreportopt
ref
function
assert getreportopt(config) == "sxXEf"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,295
getreportopt
ref
function
assert getreportopt(config) == "PpsxXEf"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,298
getreportopt
ref
function
assert getreportopt(config) == ""
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,301
getreportopt
ref
function
assert getreportopt(config) == "fE"
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,304
test_terminalreporter_reportopt_addopts
def
function
def test_terminalreporter_reportopt_addopts(pytester: Pytester) -> None: pytester.makeini("[pytest]\naddopts=-rs") pytester.makepyfile( """ import pytest @pytest.fixture def tr(request): tr = request.config.pluginmanager.getplugin("terminalreporter") retu...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,305
makeini
ref
function
pytester.makeini("[pytest]\naddopts=-rs")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,306
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,319
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,320
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,323
test_tbstyle_short
def
function
def test_tbstyle_short(pytester: Pytester) -> None: p = pytester.makepyfile( """ import pytest @pytest.fixture def arg(request): return 42 def test_opt(arg): x = 0 assert x """ ) result = pytester.runpytest("--tb=short") s ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,324
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,336
runpytest
ref
function
result = pytester.runpytest("--tb=short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,340
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*%s:8*" % p.name, " assert x", "E assert*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,341
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,347
test_traceconfig
def
function
def test_traceconfig(pytester: Pytester) -> None: result = pytester.runpytest("--traceconfig") result.stdout.fnmatch_lines(["*active plugins*"]) assert result.ret == ExitCode.NO_TESTS_COLLECTED
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,348
runpytest
ref
function
result = pytester.runpytest("--traceconfig")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,349
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*active plugins*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,353
TestGenericReporting
def
class
test_collect_fail test_maxfailures test_maxfailures_with_interrupted test_tb_option test_tb_crashline test_pytest_report_header test_show_capture test_show_capture_with_teardown_logs
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,357
test_collect_fail
def
function
def test_collect_fail(self, pytester: Pytester, option) -> None: pytester.makepyfile("import xyz\n") result = pytester.runpytest(*option.args) result.stdout.fnmatch_lines( ["ImportError while importing*", "*No module named *xyz*", "*1 error*"] ) def test_maxfailures(...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,358
makepyfile
ref
function
pytester.makepyfile("import xyz\n")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,359
runpytest
ref
function
result = pytester.runpytest(*option.args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,360
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,364
test_maxfailures
def
function
def test_maxfailures(self, pytester: Pytester, option) -> None: pytester.makepyfile( """ def test_1(): assert 0 def test_2(): assert 0 def test_3(): assert 0 """ ) result = pytester.runpyt...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,365
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,375
runpytest
ref
function
result = pytester.runpytest("--maxfail=2", *option.args)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,376
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,385
test_maxfailures_with_interrupted
def
function
def test_maxfailures_with_interrupted(self, pytester: Pytester) -> None: pytester.makepyfile( """ def test(request): request.session.shouldstop = "session_interrupted" assert 0 """ ) result = pytester.runpytest("--maxfail=1", "-...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,386
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,393
runpytest
ref
function
result = pytester.runpytest("--maxfail=1", "-ra")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,394
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,404
test_tb_option
def
function
def test_tb_option(self, pytester: Pytester, option) -> None: pytester.makepyfile( """ import pytest def g(): raise IndexError def test_func(): print(6*7) g() # --calling-- """ ) for tbop...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,405
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,417
runpytest
ref
function
result = pytester.runpytest("-rN", "--tb=%s" % tbopt)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,431
test_tb_crashline
def
function
def test_tb_crashline(self, pytester: Pytester, option) -> None: p = pytester.makepyfile( """ import pytest def g(): raise IndexError def test_func1(): print(6*7) g() # --calling-- def test_func2(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,432
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,444
runpytest
ref
function
result = pytester.runpytest("--tb=line")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,446
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,452
test_pytest_report_header
def
function
def test_pytest_report_header(self, pytester: Pytester, option) -> None: pytester.makeconftest( """ def pytest_sessionstart(session): session.config._somevalue = 42 def pytest_report_header(config): return "hello: %s" % config._somevalue ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,453
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,467
runpytest
ref
function
result = pytester.runpytest("a")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,468
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*hello: 42*", "line1", str(pytester.path)])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,470
test_show_capture
def
function
def test_show_capture(self, pytester: Pytester) -> None: pytester.makepyfile( """ import sys import logging def test_one(): sys.stdout.write('!This is stdout!') sys.stderr.write('!This is stderr!') logging.warnin...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,471
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,483
runpytest
ref
function
result = pytester.runpytest("--tb=short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,484
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,492
runpytest
ref
function
result = pytester.runpytest("--show-capture=all", "--tb=short")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,493
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,501
runpytest
ref
function
stdout = pytester.runpytest("--show-capture=stdout", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,506
runpytest
ref
function
stdout = pytester.runpytest("--show-capture=stderr", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,511
runpytest
ref
function
stdout = pytester.runpytest("--show-capture=log", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,516
runpytest
ref
function
stdout = pytester.runpytest("--show-capture=no", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,521
test_show_capture_with_teardown_logs
def
function
def test_show_capture_with_teardown_logs(self, pytester: Pytester) -> None: """Ensure that the capturing of teardown logs honor --show-capture setting""" pytester.makepyfile( """ import logging import sys import pytest @pytest.fixture(scop...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,523
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,541
runpytest
ref
function
result = pytester.runpytest("--show-capture=stdout", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,546
runpytest
ref
function
result = pytester.runpytest("--show-capture=stderr", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,551
runpytest
ref
function
result = pytester.runpytest("--show-capture=log", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,556
runpytest
ref
function
result = pytester.runpytest("--show-capture=no", "--tb=short").stdout.str()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,562
xfail
ref
function
@pytest.mark.xfail("not hasattr(os, 'dup')")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,563
test_fdopen_kept_alive_issue124
def
function
def test_fdopen_kept_alive_issue124(pytester: Pytester) -> None: pytester.makepyfile( """ import os, sys k = [] def test_open_file_and_keep_alive(capfd): stdout = os.fdopen(1, 'w', 1) k.append(stdout) def test_close_kept_alive_file(): stdo...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,564
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,577
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_terminal.py
testing/test_terminal.py
1,578
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*2 passed*"])