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 | 1,210 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,218 | test_intermingling | def | function | def test_intermingling(self):
with self.getcapture() as cap:
os.write(1, b"1")
sys.stdout.write(str(2))
sys.stdout.flush()
os.write(1, b"3")
os.write(2, b"a")
sys.stderr.write("b")
sys.stderr.flush()
os.write(2, ... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,219 | getcapture | ref | function | with self.getcapture() as cap:
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,228 | readouterr | ref | function | out, err = cap.readouterr()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,232 | test_many | def | function | def test_many(self, capfd):
with lsof_check():
for i in range(10):
cap = StdCaptureFD()
cap.start_capturing()
cap.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,233 | lsof_check | ref | function | with lsof_check():
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,235 | StdCaptureFD | ref | function | cap = StdCaptureFD()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,236 | start_capturing | ref | function | cap.start_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,237 | stop_capturing | ref | function | cap.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,240 | TestStdCaptureFDinvalidFD | def | class | test_stdcapture_fd_invalid_fd test_fdcapture_invalid_fd_with_fd_reuse test_fdcapture_invalid_fd_without_fd_reuse |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,241 | test_stdcapture_fd_invalid_fd | def | function | def test_stdcapture_fd_invalid_fd(self, pytester: Pytester) -> None:
pytester.makepyfile(
"""
import os
from fnmatch import fnmatch
from _pytest import capture
def StdCaptureFD(out=_True, err=_True, in_=_True):
return capture.Multi... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,242 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,280 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("--capture=fd")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,282 | parseoutcomes | ref | function | assert result.parseoutcomes()["passed"] == 3
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,284 | test_fdcapture_invalid_fd_with_fd_reuse | def | function | def test_fdcapture_invalid_fd_with_fd_reuse(self, pytester: Pytester) -> None:
with saved_fd(1):
os.close(1)
cap = capture.FDCaptureBinary(1)
cap.start()
os.write(1, b"started")
cap.suspend()
os.write(1, b" suspended")
cap.r... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,285 | saved_fd | ref | function | with saved_fd(1):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,287 | FDCaptureBinary | ref | function | cap = capture.FDCaptureBinary(1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,288 | start | ref | function | cap.start()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,290 | suspend | ref | function | cap.suspend()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,292 | resume | ref | function | cap.resume()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,294 | snap | ref | function | assert cap.snap() == b"started resumed"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,295 | done | ref | function | cap.done()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,296 | raises | ref | function | with pytest.raises(OSError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,299 | test_fdcapture_invalid_fd_without_fd_reuse | def | function | def test_fdcapture_invalid_fd_without_fd_reuse(self, pytester: Pytester) -> None:
with saved_fd(1), saved_fd(2):
os.close(1)
os.close(2)
cap = capture.FDCaptureBinary(2)
cap.start()
os.write(2, b"started")
cap.suspend()
os.w... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,300 | saved_fd | ref | function | with saved_fd(1), saved_fd(2):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,300 | saved_fd | ref | function | with saved_fd(1), saved_fd(2):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,303 | FDCaptureBinary | ref | function | cap = capture.FDCaptureBinary(2)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,304 | start | ref | function | cap.start()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,306 | suspend | ref | function | cap.suspend()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,308 | resume | ref | function | cap.resume()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,310 | snap | ref | function | assert cap.snap() == b"started resumed"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,311 | done | ref | function | cap.done()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,312 | raises | ref | function | with pytest.raises(OSError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,316 | test_capture_not_started_but_reset | def | function | def test_capture_not_started_but_reset() -> None:
capsys = StdCapture()
capsys.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,317 | StdCapture | ref | function | capsys = StdCapture()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,318 | stop_capturing | ref | function | capsys.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,321 | test_using_capsys_fixture_works_with_sys_stdout_encoding | def | function | def test_using_capsys_fixture_works_with_sys_stdout_encoding(
capsys: CaptureFixture[str],
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,327 | readouterr | ref | function | (out, err) = capsys.readouterr()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,332 | test_capsys_results_accessible_by_attribute | def | function | def test_capsys_results_accessible_by_attribute(capsys: CaptureFixture[str]) -> None:
sys.stdout.write("spam")
sys.stderr.write("eggs")
capture_result = capsys.readouterr()
assert capture_result.out == "spam"
assert capture_result.err == "eggs"
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,335 | readouterr | ref | function | capture_result = capsys.readouterr()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,340 | test_fdcapture_tmpfile_remains_the_same | def | function | def test_fdcapture_tmpfile_remains_the_same() -> None:
cap = StdCaptureFD(out=_False, err=_True)
try:
cap.start_capturing()
capfile = cap.err.tmpfile
cap.readouterr()
finally:
cap.stop_capturing()
capfile2 = cap.err.tmpfile
assert capfile2 == capfile
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,341 | StdCaptureFD | ref | function | cap = StdCaptureFD(out=False, err=True)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,343 | start_capturing | ref | function | cap.start_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,345 | readouterr | ref | function | cap.readouterr()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,347 | stop_capturing | ref | function | cap.stop_capturing()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,352 | test_close_and_capture_again | def | function | def test_close_and_capture_again(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import os
def test_close():
os.close(1)
def test_capture_again():
os.write(1, b"hello\\n")
assert 0
"""
)
result = pytester.runpytest_subprocess()
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,353 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,363 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,364 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,374 | parametrize | ref | function | @pytest.mark.parametrize(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,377 | test_capturing_and_logging_fundamentals | def | function | def test_capturing_and_logging_fundamentals(pytester: Pytester, method: str) -> None:
# here we check a fundamental feature
p = pytester.makepyfile(
"""
import sys, os, logging
from _pytest import capture
cap = capture.MultiCapture(
in_=None,
out=None,
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,379 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,403 | runpython | ref | function | result = pytester.runpython(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,404 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,410 | fnmatch_lines | ref | function | result.stderr.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,418 | test_error_attribute_issue555 | def | function | def test_error_attribute_issue555(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import sys
def test_capattr():
assert sys.stdout.errors == "replace"
assert sys.stderr.errors == "replace"
"""
)
reprec = pytester.inline_run()
reprec.assertoutcome... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,419 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,427 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,428 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,431 | skipif | ref | function | @pytest.mark.skipif(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,435 | test_py36_windowsconsoleio_workaround_non_standard_streams | def | function | def test_py36_windowsconsoleio_workaround_non_standard_streams() -> None:
"""
Ensure _py36_windowsconsoleio_workaround function works with objects that
do not implement the full ``io``-based stream protocol, for example execnet channels (#2666).
"""
from _pytest.capture import _py36_windowsconsoleio... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,442 | DummyStream | def | class | write |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,446 | DummyStream | ref | function | stream = cast(TextIO, DummyStream())
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,447 | _py36_windowsconsoleio_workaround | ref | function | _py36_windowsconsoleio_workaround(stream)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,450 | test_dontreadfrominput_has_encoding | def | function | def test_dontreadfrominput_has_encoding(pytester: Pytester) -> None:
pytester.makepyfile(
"""
import sys
def test_capattr():
# should not raise AttributeError
assert sys.stdout.encoding
assert sys.stderr.encoding
"""
)
reprec = pytester.inline_... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,451 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,460 | inline_run | ref | function | reprec = pytester.inline_run()
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,461 | assertoutcome | ref | function | reprec.assertoutcome(passed=1)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,464 | test_crash_on_closing_tmpfile_py27 | def | function | def test_crash_on_closing_tmpfile_py27(
pytester: Pytester, monkeypatch: MonkeyPatch
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,467 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,494 | setenv | ref | function | monkeypatch.setenv("PYTEST_DISABLE_PLUGIN_AUTOLOAD", "1")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,495 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(str(p))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,498 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*OSError*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,501 | test_global_capture_with_live_logging | def | function | def test_global_capture_with_live_logging(pytester: Pytester) -> None:
# Issue 3819
# capture should work with live cli logging
# Teardown report seems to have the capture for the whole process (setup, capture, teardown)
pytester.makeconftest(
"""
def pytest_runtest_logreport(report):
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,506 | makeconftest | ref | function | pytester.makeconftest(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,518 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,540 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("--log-cli-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,559 | parametrize | ref | function | @pytest.mark.parametrize("capture_fixture", ["capsys", "capfd"])
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,560 | test_capture_with_live_logging | def | function | def test_capture_with_live_logging(
pytester: Pytester, capture_fixture: CaptureFixture[str]
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,566 | makepyfile | ref | function | pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,591 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess("--log-cli-level=INFO")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,595 | test_typeerror_encodedfile_write | def | function | def test_typeerror_encodedfile_write(pytester: Pytester) -> None:
"""It should behave the same with and without output capturing (#4861)."""
p = pytester.makepyfile(
"""
def test_fails():
import sys
sys.stdout.write(b"foo")
"""
)
result_without_capture = pytes... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,597 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,604 | runpytest | ref | function | result_without_capture = pytester.runpytest("-s", str(p))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,605 | runpytest | ref | function | result_with_capture = pytester.runpytest(str(p))
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,614 | test_stderr_write_returns_len | def | function | def test_stderr_write_returns_len(capsys: CaptureFixture[str]) -> None:
"""Write on Encoded files, namely captured stderr, should return number of characters written."""
assert sys.stderr.write("Foo") == 3
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,619 | test_encodedfile_writelines | def | function | def test_encodedfile_writelines(tmpfile: BinaryIO) -> None:
ef = capture.EncodedFile(tmpfile, encoding="utf-8")
with pytest.raises(TypeError):
ef.writelines([b"line1", b"line2"]) # type: ignore[list-item]
assert ef.writelines(["line3", "line4"]) is None # type: ignore[func-returns-value]
ef.fl... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,620 | EncodedFile | ref | function | ef = capture.EncodedFile(tmpfile, encoding="utf-8")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,621 | raises | ref | function | with pytest.raises(TypeError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,628 | raises | ref | function | with pytest.raises(ValueError):
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,632 | test__get_multicapture | def | function | def test__get_multicapture() -> None:
assert isinstance(_get_multicapture("no"), MultiCapture)
pytest.raises(ValueError, _get_multicapture, "unknown").match(
r"^unknown capturing method: 'unknown'"
)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,633 | _get_multicapture | ref | function | assert isinstance(_get_multicapture("no"), MultiCapture)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,634 | raises | ref | function | pytest.raises(ValueError, _get_multicapture, "unknown").match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,634 | match | ref | function | pytest.raises(ValueError, _get_multicapture, "unknown").match(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,639 | test_logging_while_collecting | def | function | def test_logging_while_collecting(pytester: Pytester) -> None:
"""Issue #6240: Calls to logging.xxx() during collection causes all logging calls to be duplicated to stderr"""
p = pytester.makepyfile(
"""\
import logging
logging.warning("during collection")
def test_logging():
... |
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,641 | makepyfile | ref | function | p = pytester.makepyfile(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,652 | runpytest_subprocess | ref | function | result = pytester.runpytest_subprocess(p)
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,654 | fnmatch_lines | ref | function | result.stdout.fnmatch_lines(
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,664 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*Captured stderr call*")
|
playground/5d9c10a9-c67f-4d61-a0f0-c84c5a279fa1/pytest/testing/test_capture.py | testing/test_capture.py | 1,665 | no_fnmatch_line | ref | function | result.stdout.no_fnmatch_line("*during collection*")
|
Subsets and Splits
No community queries yet
The top public SQL queries from the community will appear here once available.