(self)
| 785 | assert_array_equal(x, a) |
| 786 | |
| 787 | def test_missing(self): |
| 788 | c = TextIO() |
| 789 | c.write('1,2,3,,5\n') |
| 790 | c.seek(0) |
| 791 | x = np.loadtxt(c, dtype=int, delimiter=',', |
| 792 | converters={3: lambda s: int(s or - 999)}) |
| 793 | a = np.array([1, 2, 3, -999, 5], int) |
| 794 | assert_array_equal(x, a) |
| 795 | |
| 796 | def test_converters_with_usecols(self): |
| 797 | c = TextIO() |
nothing calls this directly
no test coverage detected