(self)
| 687 | assert_array_equal(v, np.array(utf16.decode('UTF-16').split())) |
| 688 | |
| 689 | def test_converters_decode(self): |
| 690 | # test converters that decode strings |
| 691 | c = TextIO() |
| 692 | c.write(b'\xcf\x96') |
| 693 | c.seek(0) |
| 694 | x = self.loadfunc(c, dtype=np.str_, |
| 695 | converters={0: lambda x: x.decode('UTF-8')}) |
| 696 | a = np.array([b'\xcf\x96'.decode('UTF-8')]) |
| 697 | assert_array_equal(x, a) |
| 698 | |
| 699 | def test_converters_nodecode(self): |
| 700 | # test native string converters enabled by setting an encoding |
nothing calls this directly
no test coverage detected