MCPcopy Create free account
hub / github.com/apache/arrow / MyBytesIO

Class MyBytesIO

python/pyarrow/tests/test_csv.py:2212–2219  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

2210 data = b"a,b,c"
2211
2212 class MyBytesIO(io.BytesIO):
2213 def read(self, *args):
2214 time.sleep(0.001)
2215 return super().read(*args)
2216
2217 def readinto(self, *args):
2218 time.sleep(0.001)
2219 return super().readinto(*args)
2220
2221 for i in range(20):
2222 with pytest.raises(pa.ArrowInvalid):

Callers 1

Calls

no outgoing calls

Tested by 1