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

Function test_array_frombytes

extra_tests/snippets/stdlib_array.py:93–97  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

91
92
93def test_array_frombytes():
94 a = array("b", [-1, -2])
95 b = bytearray(a.tobytes())
96 c = array("b", b)
97 assert a == c
98
99
100test_array_frombytes()

Callers 1

stdlib_array.pyFile · 0.85

Calls 2

arrayClass · 0.85
tobytesMethod · 0.45

Tested by

no test coverage detected