Skip to content

Commit

Permalink
TST: add a regression test for bug 13191
Browse files Browse the repository at this point in the history
  • Loading branch information
neutrinoceros committed Jan 15, 2024
1 parent 295ea9a commit 9d3cfcb
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions astropy/io/ascii/tests/test_ecsv.py
Expand Up @@ -156,6 +156,13 @@ def test_write_read_roundtrip():
assert np.all(t[name] == t2[name])


def test_write_read_roundtrip_empty_table(tmp_path):
# see https://github.com/astropy/astropy/issues/13191
sfile = tmp_path / "x.ecsv"
Table().write(sfile)
Table.read(sfile)


def test_bad_delimiter():
"""
Passing a delimiter other than space or comma gives an exception
Expand Down

0 comments on commit 9d3cfcb

Please sign in to comment.