• Home
  • Raw
  • Download

Lines Matching refs:tobytes

665     mem = exporter.tobytes()
736 x = nd.tobytes()
817 rep = result.tolist() if fmt else result.tobytes()
848 self.assertEqual(result.tobytes(), b)
880 self.assertEqual(contig.tobytes(), b)
903 contig_bytes = memoryview(result).tobytes()
906 contig_bytes = memoryview(result).tobytes(order=None)
909 contig_bytes = memoryview(result).tobytes(order='C')
924 contig_bytes = memoryview(result).tobytes(order='F')
939 contig_bytes = memoryview(result).tobytes(order='A')
964 rep = result.tolist() if fmt else result.tobytes()
971 m.tobytes() # Releasing mm didn't release m
1009 lst = orig_ex.tobytes() # Issue 12834
2120 self.assertEqual(hash(nd), hash(nd.tobytes()))
2145 self.assertEqual(b, nd.tobytes())
2167 ndbytes = nd.tobytes()
2174 ndbytes = nd.tobytes()
2182 ndbytes = nd.tobytes()
2189 ndbytes = nd.tobytes()
2274 expected = x.tobytes()
2276 expected = nd.tobytes()
2299 expected = x.tobytes()
2319 expected = x.tobytes()
2321 expected = nd.tobytes()
2345 self.assertEqual(b, nd.tobytes())
2352 self.assertEqual(b, x.tobytes())
2358 self.assertEqual(b, nd.tobytes())
2494 self.assertEqual(m.tobytes(), b'')
2694 ('B', lambda ex: list(ex.tobytes())),
2695 ('b', lambda ex: [x-256 if x > 127 else x for x in list(ex.tobytes())]),
2696 ('c', lambda ex: [bytes(chr(x), 'latin-1') for x in list(ex.tobytes())]),
3145 self.assertEqual(m.tobytes(), a.tobytes())
3173 self.assertEqual(m.tobytes(), a.tobytes())
3902 self.assertRaises(ValueError, m.tobytes)
3934 self.assertEqual(m.tobytes(), nd.tobytes())
3939 self.assertEqual(m.tobytes(), nd.tobytes())
3944 self.assertEqual(m.tobytes(), nd.tobytes())
3950 self.assertEqual(m.tobytes(), nd.tobytes())
3959 self.assertEqual(a.tobytes(), bytes(point))
4087 self.assertEqual(m.tobytes(), b)
4096 self.assertEqual(m.tobytes(), b)