MCPcopy Index your code
hub / github.com/python/cpython / _readAndReseek

Method _readAndReseek

Lib/test/test_httpservers.py:1073–1078  ·  view source on GitHub ↗
(f)

Source from the content-addressed store, hash-verified

1071 def test_header_unbuffered_when_continue(self):
1072
1073 def _readAndReseek(f):
1074 pos = f.tell()
1075 f.seek(0)
1076 data = f.read()
1077 f.seek(pos)
1078 return data
1079
1080 input = BytesIO(b'GET / HTTP/1.1\r\nExpect: 100-continue\r\n\r\n')
1081 output = BytesIO()

Callers

nothing calls this directly

Calls 3

tellMethod · 0.45
seekMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected