Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ MyBytesIO
Class
MyBytesIO
Lib/test/test_io.py:3142–3145 ·
view source on GitHub ↗
Source
from the content-addressed store, hash-verified
3140
l = []
3141
base = self.BytesIO
3142
class
MyBytesIO(base):
3143
def
close(self):
3144
l.append(self.getvalue())
3145
base.close(self)
3146
b = MyBytesIO()
3147
t = self.TextIOWrapper(b, encoding=
"ascii"
)
3148
t.write(
"abc"
)
Callers
1
test_destructor
Method · 0.70
Calls
no outgoing calls
Tested by
1
test_destructor
Method · 0.56