MCPcopy Index your code
hub / github.com/numpy/numpy / test_comments_multiple

Method test_comments_multiple

numpy/lib/tests/test_io.py:824–831  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

822 assert_array_equal(x, a)
823
824 def test_comments_multiple(self):
825 c = TextIO()
826 c.write('# comment\n1,2,3\n@ comment2\n4,5,6 // comment3')
827 c.seek(0)
828 x = np.loadtxt(c, dtype=int, delimiter=',',
829 comments=['#', '@', '//'])
830 a = np.array([[1, 2, 3], [4, 5, 6]], int)
831 assert_array_equal(x, a)
832
833 def test_comments_multi_chars(self):
834 c = TextIO()

Callers

nothing calls this directly

Calls 4

writeMethod · 0.95
assert_array_equalFunction · 0.90
TextIOClass · 0.85
seekMethod · 0.80

Tested by

no test coverage detected