MCPcopy
hub / github.com/pytest-dev/pytest / test_fdcapture_tmpfile_remains_the_same

Function test_fdcapture_tmpfile_remains_the_same

testing/test_capture.py:1421–1431  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1419
1420
1421def test_fdcapture_tmpfile_remains_the_same() -> None:
1422 cap = StdCaptureFD(out=False, err=True)
1423 assert isinstance(cap.err, capture.FDCapture)
1424 try:
1425 cap.start_capturing()
1426 capfile = cap.err.tmpfile
1427 cap.readouterr()
1428 finally:
1429 cap.stop_capturing()
1430 capfile2 = cap.err.tmpfile
1431 assert capfile2 == capfile
1432
1433
1434def test_close_and_capture_again(pytester: Pytester) -> None:

Callers

nothing calls this directly

Calls 4

StdCaptureFDFunction · 0.85
start_capturingMethod · 0.80
stop_capturingMethod · 0.80
readouterrMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…