Home
last modified time | relevance | path

Searched refs:memio (Results 1 – 2 of 2) sorted by relevance

/external/python/cpython3/Lib/test/
Dtest_memoryio.py87 memio = self.ioclass(buf)
89 self.write_ops(memio, self.buftype)
90 self.assertEqual(memio.getvalue(), buf)
91 memio = self.ioclass()
92 self.write_ops(memio, self.buftype)
93 self.assertEqual(memio.getvalue(), buf)
94 self.assertRaises(TypeError, memio.write, None)
95 memio.close()
96 self.assertRaises(ValueError, memio.write, self.buftype(""))
100 memio = self.ioclass()
[all …]
/external/python/cpython2/Lib/test/
Dtest_memoryio.py83 memio = self.ioclass(buf)
85 self.write_ops(memio, self.buftype)
86 self.assertEqual(memio.getvalue(), buf)
87 memio = self.ioclass()
88 self.write_ops(memio, self.buftype)
89 self.assertEqual(memio.getvalue(), buf)
90 self.assertRaises(TypeError, memio.write, None)
91 memio.close()
92 self.assertRaises(ValueError, memio.write, self.buftype(""))
96 memio = self.ioclass()
[all …]