MCPcopy Create free account
hub / github.com/numpy/numpy / test_comments_unicode

Method test_comments_unicode

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

Source from the content-addressed store, hash-verified

787 assert_array_equal(x, a)
788
789 def test_comments_unicode(self):
790 c = TextIO()
791 c.write('# comment\n1,2,3,5\n')
792 c.seek(0)
793 x = np.loadtxt(c, dtype=int, delimiter=',',
794 comments='#')
795 a = np.array([1, 2, 3, 5], int)
796 assert_array_equal(x, a)
797
798 def test_comments_byte(self):
799 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