(self)
| 831 | assert_array_equal(x, a) |
| 832 | |
| 833 | def test_comments_multi_chars(self): |
| 834 | c = TextIO() |
| 835 | c.write('/* comment\n1,2,3,5\n') |
| 836 | c.seek(0) |
| 837 | x = np.loadtxt(c, dtype=int, delimiter=',', |
| 838 | comments='/*') |
| 839 | a = np.array([1, 2, 3, 5], int) |
| 840 | assert_array_equal(x, a) |
| 841 | |
| 842 | # Check that '/*' is not transformed to ['/', '*'] |
| 843 | c = TextIO() |
| 844 | c.write('*/ comment\n1,2,3,5\n') |
| 845 | c.seek(0) |
| 846 | assert_raises(ValueError, np.loadtxt, c, dtype=int, delimiter=',', |
| 847 | comments='/*') |
| 848 | |
| 849 | def test_skiprows(self): |
| 850 | c = TextIO() |
nothing calls this directly
no test coverage detected