Home
last modified time | relevance | path

Searched refs:bytes_data (Results 1 – 3 of 3) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_base64.py107 def check_other_types(self, f, bytes_data, expected): argument
109 b = bytearray(bytes_data)
112 eq(b, bytes_data)
113 eq(f(memoryview(bytes_data)), expected)
114 eq(f(array('B', bytes_data)), expected)
116 self.check_nonbyte_element_format(base64.b64encode, bytes_data)
117 self.check_multidimensional(base64.b64encode, bytes_data)
121 bytes_data = data + padding # Make sure cast works
122 shape = (len(bytes_data) // 2, 2)
123 multidimensional = memoryview(bytes_data).cast('B', shape)
[all …]
/external/python/cpython3/Lib/test/test_importlib/
Dutil.py502 bytes_data = io.BytesIO(b'Hello, world!')
503 package = create_package(file=bytes_data, path=FileNotFoundError())
509 bytes_data = io.BytesIO(b'Hello, world!')
511 package = create_package(file=bytes_data, path=path)
/external/python/cpython3/Lib/importlib/
D_bootstrap_external.py828 bytes_data = memoryview(data)[16:]
855 return _compile_bytecode(bytes_data, name=fullname,