(self)
| 704 | assert_array_equal(v, np.array(utf16.decode('UTF-16').split())) |
| 705 | |
| 706 | def test_converters_decode(self): |
| 707 | # test converters that decode strings |
| 708 | c = TextIO() |
| 709 | c.write(b'\xcf\x96') |
| 710 | c.seek(0) |
| 711 | x = self.loadfunc(c, dtype=np.str_, encoding="bytes", |
| 712 | converters={0: lambda x: x.decode('UTF-8')}) |
| 713 | a = np.array([b'\xcf\x96'.decode('UTF-8')]) |
| 714 | assert_array_equal(x, a) |
| 715 | |
| 716 | def test_converters_nodecode(self): |
| 717 | # test native string converters enabled by setting an encoding |
nothing calls this directly
no test coverage detected