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_capture.py
testing/test_capture.py
124
runpytest
ref
function
result = pytester.runpytest("--capture=%s" % method)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
125
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*1 passed*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
128
test_collect_capturing
def
function
def test_collect_capturing(pytester: Pytester) -> None: p = pytester.makepyfile( """ import sys print("collect %s failure" % 13) sys.stderr.write("collect %s_stderr failure" % 13) import xyz42123 """ ) result = pytester.runpytest(p) result.stdout.fnmatch_line...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
129
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
138
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
139
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
149
TestPerTestCapturing
def
class
test_capture_and_fixtures test_capture_scope_cache test_no_carry_over test_teardown_capturing test_teardown_capturing_final test_capturing_outerr
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
150
test_capture_and_fixtures
def
function
def test_capture_and_fixtures(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def setup_module(mod): print("setup module") def setup_function(function): print("setup " + function.__name__) def test_func1(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
151
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
165
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
166
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
176
xfail
ref
function
@pytest.mark.xfail(reason="unimplemented feature")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
177
test_capture_scope_cache
def
function
def test_capture_scope_cache(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ import sys def setup_module(func): print("module-setup") def setup_function(func): print("function-setup") def test_func():...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
178
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
192
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
193
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
204
test_no_carry_over
def
function
def test_no_carry_over(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def test_func1(): print("in func1") def test_func2(): print("in func2") assert 0 """ ) result = pytester.runpytes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
205
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
214
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
219
test_teardown_capturing
def
function
def test_teardown_capturing(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def setup_function(function): print("setup func1") def teardown_function(function): print("teardown func1") assert 0 def...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
220
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
232
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
233
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
244
test_teardown_capturing_final
def
function
def test_teardown_capturing_final(self, pytester: Pytester) -> None: p = pytester.makepyfile( """ def teardown_module(mod): print("teardown module") assert 0 def test_func(): pass """ ) result = pytes...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
245
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
254
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
255
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
264
test_capturing_outerr
def
function
def test_capturing_outerr(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( """\ import sys def test_capturing(): print(42) sys.stderr.write(str(23)) def test_capturing_error(): print(1) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
265
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
277
runpytest
ref
function
result = pytester.runpytest(p1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
278
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
292
TestLoggingInteraction
def
class
test_logging_stream_ownership test_logging_and_immediate_setupteardown test_logging_and_crossscope_fixtures test_conftestlogging_is_shown test_conftestlogging_and_test_logging test_logging_after_cap_stopped
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
293
test_logging_stream_ownership
def
function
def test_logging_stream_ownership(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ def test_logging(): import logging import pytest stream = capture.CaptureIO() logging.basicConfig(stream=stream) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
294
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
304
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
307
test_logging_and_immediate_setupteardown
def
function
def test_logging_and_immediate_setupteardown(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ import logging def setup_function(function): logging.warning("hello1") def test_logging(): logging.warning("hello2") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
308
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
325
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p, *optargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
327
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
333
test_logging_and_crossscope_fixtures
def
function
def test_logging_and_crossscope_fixtures(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ import logging def setup_module(function): logging.warning("hello1") def test_logging(): logging.warning("hello2") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
334
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
351
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p, *optargs)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
353
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
359
test_conftestlogging_is_shown
def
function
def test_conftestlogging_is_shown(self, pytester: Pytester) -> None: pytester.makeconftest( """\ import logging logging.basicConfig() logging.warning("hello435") """ ) # make sure that logging is still captured in tests ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
360
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
368
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess("-s", "-p", "no:capturelog")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
370
fnmatch_lines
ref
function
result.stderr.fnmatch_lines(["WARNING*hello435*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
373
test_conftestlogging_and_test_logging
def
function
def test_conftestlogging_and_test_logging(self, pytester: Pytester) -> None: pytester.makeconftest( """\ import logging logging.basicConfig() """ ) # make sure that logging is still captured in tests p = pytester.makepyfile( ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
374
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
381
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
389
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p, "-p", "no:capturelog")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
391
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["WARNING*hello433*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
395
test_logging_after_cap_stopped
def
function
def test_logging_after_cap_stopped(self, pytester: Pytester) -> None: pytester.makeconftest( """\ import pytest import logging log = logging.getLogger(__name__) @pytest.fixture def log_on_teardown(): ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
396
makeconftest
ref
function
pytester.makeconftest(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
410
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
419
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p, "--log-cli-level", "info")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
421
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
430
TestCaptureFixture
def
class
test_std_functional test_capsyscapfd test_capturing_getfixturevalue test_capsyscapfdbinary test_capture_is_represented_on_failure_issue128 test_stdfd_functional test_cafd_preserves_newlines test_capfdbinary test_capsysbinary test_partial_setup_failure test_keyboardinterrupt_disables_capturing test_capture_and_logging t...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
431
parametrize
ref
function
@pytest.mark.parametrize("opt", [[], ["-s"]])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
432
test_std_functional
def
function
def test_std_functional(self, pytester: Pytester, opt) -> None: reprec = pytester.inline_runsource( """\ def test_hello(capsys): print(42) out, err = capsys.readouterr() assert out.startswith("42") """, *opt, ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
433
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
442
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
444
test_capsyscapfd
def
function
def test_capsyscapfd(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ def test_one(capsys, capfd): pass def test_two(capfd, capsys): pass """ ) result = pytester.runpytest(p) result.stdout...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
445
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
453
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
454
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
464
test_capturing_getfixturevalue
def
function
def test_capturing_getfixturevalue(self, pytester: Pytester) -> None: """Test that asking for "capfd" and "capsys" using request.getfixturevalue in the same test is an error. """ pytester.makepyfile( """\ def test_one(capsys, request): request....
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
468
makepyfile
ref
function
pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
476
runpytest
ref
function
result = pytester.runpytest()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
477
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
487
test_capsyscapfdbinary
def
function
def test_capsyscapfdbinary(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ def test_one(capsys, capfdbinary): pass """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines( ["*ERROR*setup*test_on...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
488
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
494
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
495
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
499
parametrize
ref
function
@pytest.mark.parametrize("method", ["sys", "fd"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
500
test_capture_is_represented_on_failure_issue128
def
function
def test_capture_is_represented_on_failure_issue128( self, pytester: Pytester, method ) -> None: p = pytester.makepyfile( """\ def test_hello(cap{}): print("xxx42xxx") assert 0 """.format( method ) ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
503
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
512
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
513
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["xxx42xxx"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
515
test_stdfd_functional
def
function
def test_stdfd_functional(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """\ def test_hello(capfd): import os os.write(1, b"42") out, err = capfd.readouterr() assert out.startswith("42") ...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
516
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
526
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
528
parametrize
ref
function
@pytest.mark.parametrize("nl", ("\n", "\r\n", "\r"))
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
529
test_cafd_preserves_newlines
def
function
def test_cafd_preserves_newlines(self, capfd, nl) -> None: print("test", end=nl) out, err = capfd.readouterr() assert out.endswith(nl) def test_capfdbinary(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """\ def test_hello(capfdbin...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
531
readouterr
ref
function
out, err = capfd.readouterr()
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
534
test_capfdbinary
def
function
def test_capfdbinary(self, pytester: Pytester) -> None: reprec = pytester.inline_runsource( """\ def test_hello(capfdbinary): import os # some likely un-decodable bytes os.write(1, b'\\xfe\\x98\\x20') out, err = capfdbin...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
535
inline_runsource
ref
function
reprec = pytester.inline_runsource(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
546
assertoutcome
ref
function
reprec.assertoutcome(passed=1)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
548
test_capsysbinary
def
function
def test_capsysbinary(self, pytester: Pytester) -> None: p1 = pytester.makepyfile( r""" def test_hello(capsysbinary): import sys sys.stdout.buffer.write(b'hello') # Some likely un-decodable bytes. sys.stdout.buffer.wri...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
549
makepyfile
ref
function
p1 = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
573
runpytest
ref
function
result = pytester.runpytest(str(p1), "-rA")
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
574
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
584
test_partial_setup_failure
def
function
def test_partial_setup_failure(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ def test_hello(capsys, missingarg): pass """ ) result = pytester.runpytest(p) result.stdout.fnmatch_lines(["*test_partial_setup_failure*...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
585
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
591
runpytest
ref
function
result = pytester.runpytest(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
592
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*test_partial_setup_failure*", "*1 error*"])
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
594
test_keyboardinterrupt_disables_capturing
def
function
def test_keyboardinterrupt_disables_capturing(self, pytester: Pytester) -> None: p = pytester.makepyfile( """\ def test_hello(capfd): import os os.write(1, b'42') raise KeyboardInterrupt() """ ) result = pyte...
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
595
makepyfile
ref
function
p = pytester.makepyfile(
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
603
runpytest_subprocess
ref
function
result = pytester.runpytest_subprocess(p)
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py
testing/test_capture.py
604
fnmatch_lines
ref
function
result.stdout.fnmatch_lines(["*KeyboardInterrupt*"])