MCPcopy Index your code
hub / github.com/RustPython/RustPython / _seekabs

Method _seekabs

Lib/test/test_io.py:1954–1958  ·  view source on GitHub ↗
(bufio)

Source from the content-addressed store, hash-verified

1952
1953 def test_writes_and_seeks(self):
1954 def _seekabs(bufio):
1955 pos = bufio.tell()
1956 bufio.seek(pos + 1, 0)
1957 bufio.seek(pos - 1, 0)
1958 bufio.seek(pos, 0)
1959 self.check_writes(_seekabs)
1960 def _seekrel(bufio):
1961 pos = bufio.seek(0, 1)

Callers

nothing calls this directly

Calls 2

tellMethod · 0.45
seekMethod · 0.45

Tested by

no test coverage detected