(comment)
| 33 | |
| 34 | @pytest.mark.parametrize("comment", ["..", "//", "@-", "this is a comment:"]) |
| 35 | def test_comment_multiple_chars(comment): |
| 36 | content = "# IGNORE\n1.5, 2.5# ABC\n3.0,4.0# XXX\n5.5,6.0\n" |
| 37 | txt = StringIO(content.replace("#", comment)) |
| 38 | a = np.loadtxt(txt, delimiter=",", comments=comment) |
| 39 | assert_equal(a, [[1.5, 2.5], [3.0, 4.0], [5.5, 6.0]]) |
| 40 | |
| 41 | |
| 42 | @pytest.fixture |
nothing calls this directly
no test coverage detected