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/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
874
makepyfile
ref
function
pytester.makepyfile(**{"pkg1/test_1.py": """def test_1(): assert 0"""})
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
875
runpytest
ref
function
result = pytester.runpytest("--lf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
876
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
885
makepyfile
ref
function
pytester.makepyfile(**{"pkg1/test_1.py": """def test_renamed(): assert 0"""})
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
886
runpytest
ref
function
result = pytester.runpytest("--lf", "-rf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
887
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
898
runpytest
ref
function
result = pytester.runpytest("--lf", "--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
899
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
909
test_lastfailed_args_with_deselected
def
function
def test_lastfailed_args_with_deselected(self, pytester: Pytester) -> None: """Test regression with --lf running into NoMatch error. This was caused by it not collecting (non-failed) nodes given as arguments. """ pytester.makepyfile( **{ "pkg1/tes...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
915
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
923
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
924
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["collected 2 items", "* 1 failed, 1 passed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
927
runpytest
ref
function
result = pytester.runpytest("pkg1/test_1.py::test_pass", "--lf", "--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
929
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
940
runpytest
ref
function
result = pytester.runpytest(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
944
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
955
test_lastfailed_with_class_items
def
class
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
957
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
968
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
969
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["collected 3 items", "* 2 failed, 1 passed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
972
runpytest
ref
function
result = pytester.runpytest("--lf", "--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
974
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
989
test_lastfailed_with_all_filtered
def
function
def test_lastfailed_with_all_filtered(self, pytester: Pytester) -> None: pytester.makepyfile( **{ "pkg1/test_1.py": """ def test_fail(): assert 0 def test_pass(): pass """, } ) result = pytester.r...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
990
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
998
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
999
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["collected 2 items", "* 1 failed, 1 passed in *"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,003
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,010
runpytest
ref
function
result = pytester.runpytest("--lf", "--co")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,011
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,025
test_packages
def
function
def test_packages(self, pytester: Pytester) -> None: """Regression test for #7758. The particular issue here was that Package nodes were included in the filtering, being themselves Modules for the __init__.py, even if they had failed Modules in them. The tests includes a te...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,035
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,044
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,050
runpytest
ref
function
result = pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,051
assert_outcomes
ref
function
result.assert_outcomes(failed=3)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,052
runpytest
ref
function
result = pytester.runpytest("--lf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,053
assert_outcomes
ref
function
result.assert_outcomes(failed=3)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,056
TestNewFirst
def
class
test_newfirst_usecase test_newfirst_parametrize
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,057
test_newfirst_usecase
def
function
def test_newfirst_usecase(self, pytester: Pytester) -> None: pytester.makepyfile( **{ "test_1/test_1.py": """ def test_1(): assert 1 """, "test_2/test_2.py": """ def test_1(): assert 1 """, } ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,058
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,072
runpytest
ref
function
result = pytester.runpytest("-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,073
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,077
runpytest
ref
function
result = pytester.runpytest("-v", "--nf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,078
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,085
runpytest
ref
function
result = pytester.runpytest("--nf", "--collect-only", "-q")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,086
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,095
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,102
syspathinsert
ref
function
pytester.syspathinsert()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,103
runpytest
ref
function
result = pytester.runpytest("--nf", "-p", "myplugin", "--collect-only", "-q")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,104
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,113
test_newfirst_parametrize
def
function
def test_newfirst_parametrize(self, pytester: Pytester) -> None: pytester.makepyfile( **{ "test_1/test_1.py": """ import pytest @pytest.mark.parametrize('num', [1, 2]) def test_1(num): assert num """, "te...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,114
makepyfile
ref
function
pytester.makepyfile(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,132
runpytest
ref
function
result = pytester.runpytest("-v")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,133
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,142
runpytest
ref
function
result = pytester.runpytest("-v", "--nf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,143
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,160
runpytest
ref
function
result = pytester.runpytest("-v", "--nf", "test_2/test_2.py")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,161
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,165
runpytest
ref
function
result = pytester.runpytest("-v", "--nf")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,166
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,177
TestReadme
def
class
check_readme test_readme_passed test_readme_failed
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,178
check_readme
def
function
def check_readme(self, pytester: Pytester) -> bool: config = pytester.parseconfigure() assert config.cache is not None readme = config.cache._cachedir.joinpath("README.md") return readme.is_file() def test_readme_passed(self, pytester: Pytester) -> None: pytester.makepyf...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,179
parseconfigure
ref
function
config = pytester.parseconfigure()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,184
test_readme_passed
def
function
def test_readme_passed(self, pytester: Pytester) -> None: pytester.makepyfile("def test_always_passes(): pass") pytester.runpytest() assert self.check_readme(pytester) is _True def test_readme_failed(self, pytester: Pytester) -> None: pytester.makepyfile("def test_always_fails()...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,185
makepyfile
ref
function
pytester.makepyfile("def test_always_passes(): pass")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,186
runpytest
ref
function
pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,187
check_readme
ref
function
assert self.check_readme(pytester) is True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,189
test_readme_failed
def
function
def test_readme_failed(self, pytester: Pytester) -> None: pytester.makepyfile("def test_always_fails(): assert 0") pytester.runpytest() assert self.check_readme(pytester) is _True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,190
makepyfile
ref
function
pytester.makepyfile("def test_always_fails(): assert 0")
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,191
runpytest
ref
function
pytester.runpytest()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,192
check_readme
ref
function
assert self.check_readme(pytester) is True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,195
test_gitignore
def
function
def test_gitignore(pytester: Pytester) -> None: """Ensure we automatically create .gitignore file in the pytest_cache directory (#3286).""" from _pytest.cacheprovider import Cache config = pytester.parseconfig() cache = Cache.for_config(config, _ispytest=_True) cache.set("foo", "bar") msg = "# ...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,199
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,200
for_config
ref
function
cache = Cache.for_config(config, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,212
test_does_not_create_boilerplate_in_existing_dirs
def
function
def test_does_not_create_boilerplate_in_existing_dirs(pytester: Pytester) -> None: from _pytest.cacheprovider import Cache pytester.makeini( """ [pytest] cache_dir = . """ ) config = pytester.parseconfig() cache = Cache.for_config(config, _ispytest=_True) cache.s...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,215
makeini
ref
function
pytester.makeini(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,221
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,222
for_config
ref
function
cache = Cache.for_config(config, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,225
isdir
ref
function
assert os.path.isdir("v") # cache contents
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,230
test_cachedir_tag
def
function
def test_cachedir_tag(pytester: Pytester) -> None: """Ensure we automatically create CACHEDIR.TAG file in the pytest_cache directory (#4278).""" from _pytest.cacheprovider import Cache from _pytest.cacheprovider import CACHEDIR_TAG_CONTENT config = pytester.parseconfig() cache = Cache.for_config(co...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,235
parseconfig
ref
function
config = pytester.parseconfig()
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_cacheprovider.py
testing/test_cacheprovider.py
1,236
for_config
ref
function
cache = Cache.for_config(config, _ispytest=True)
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
27
StdCaptureFD
def
function
def StdCaptureFD( out: bool = _True, err: bool = _True, in_: bool = _True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
30
MultiCapture
ref
function
return capture.MultiCapture(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
31
FDCapture
ref
function
in_=capture.FDCapture(0) if in_ else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
32
FDCapture
ref
function
out=capture.FDCapture(1) if out else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
33
FDCapture
ref
function
err=capture.FDCapture(2) if err else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
37
StdCapture
def
function
def StdCapture( out: bool = _True, err: bool = _True, in_: bool = _True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
40
MultiCapture
ref
function
return capture.MultiCapture(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
41
SysCapture
ref
function
in_=capture.SysCapture(0) if in_ else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
42
SysCapture
ref
function
out=capture.SysCapture(1) if out else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
43
SysCapture
ref
function
err=capture.SysCapture(2) if err else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
47
TeeStdCapture
def
function
def TeeStdCapture( out: bool = _True, err: bool = _True, in_: bool = _True
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
50
MultiCapture
ref
function
return capture.MultiCapture(
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
51
SysCapture
ref
function
in_=capture.SysCapture(0, tee=True) if in_ else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
52
SysCapture
ref
function
out=capture.SysCapture(1, tee=True) if out else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
53
SysCapture
ref
function
err=capture.SysCapture(2, tee=True) if err else None,
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
57
TestCaptureManager
def
class
test_capturing_basic_api test_init_capturing
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
58
parametrize
ref
function
@pytest.mark.parametrize("method", ["no", "sys", "fd"])
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
59
test_capturing_basic_api
def
function
def test_capturing_basic_api(self, method) -> None: capouter = StdCaptureFD() old = sys.stdout, sys.stderr, sys.stdin try: capman = CaptureManager(method) capman.start_global_capturing() capman.suspend_global_capture() outerr = capman.read_glob...
playground/385a4687-3c82-4369-b8de-c1d8c2e759f9/pytest/testing/test_capture.py
testing/test_capture.py
60
StdCaptureFD
ref
function
capouter = StdCaptureFD()