(self)
| 697 | assert_array_equal(x, a) |
| 698 | |
| 699 | def test_converters_nodecode(self): |
| 700 | # test native string converters enabled by setting an encoding |
| 701 | utf8 = b'\xcf\x96'.decode('UTF-8') |
| 702 | with temppath() as path: |
| 703 | with io.open(path, 'wt', encoding='UTF-8') as f: |
| 704 | f.write(utf8) |
| 705 | x = self.loadfunc(path, dtype=np.str_, |
| 706 | converters={0: lambda x: x + 't'}, |
| 707 | encoding='UTF-8') |
| 708 | a = np.array([utf8 + 't']) |
| 709 | assert_array_equal(x, a) |
| 710 | |
| 711 | |
| 712 | class TestLoadTxt(LoadTxtBase): |
nothing calls this directly
no test coverage detected