MCPcopy Create free account
hub / github.com/pytest-dev/pytest / test_fdcapture_tmpfile_remains_the_same

Function test_fdcapture_tmpfile_remains_the_same

testing/test_capture.py:1341–1350  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

1339
1340
1341def test_fdcapture_tmpfile_remains_the_same() -> None:
1342 cap = StdCaptureFD(out=False, err=True)
1343 try:
1344 cap.start_capturing()
1345 capfile = cap.err.tmpfile
1346 cap.readouterr()
1347 finally:
1348 cap.stop_capturing()
1349 capfile2 = cap.err.tmpfile
1350 assert capfile2 == capfile
1351
1352
1353def 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