Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ test_02
Function
test_02
extra_tests/snippets/stdlib_io_bytesio.py:14–19 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
12
13
14
def
test_02():
15
bytes_string = b
"Test String 2"
16
f = BytesIO(bytes_string)
17
18
assert f.read() == bytes_string
19
assert f.read() == b
""
20
21
22
def
test_03():
Callers
1
stdlib_io_bytesio.py
File · 0.70
Calls
2
read
Method · 0.95
BytesIO
Class · 0.90
Tested by
no test coverage detected