(pytester: Pytester)
| 932 | |
| 933 | @pytest.fixture |
| 934 | def tmpfile(pytester: Pytester) -> Generator[BinaryIO, None, None]: |
| 935 | f = pytester.makepyfile("").open("wb+") |
| 936 | yield f |
| 937 | if not f.closed: |
| 938 | f.close() |
| 939 | |
| 940 | |
| 941 | @contextlib.contextmanager |
nothing calls this directly
no test coverage detected