From 77348450aad438fdaade1c83382fc68c4773849a Mon Sep 17 00:00:00 2001 From: James McKinney <26463+jpmckinney@users.noreply.github.com> Date: Sun, 28 Apr 2024 13:21:38 -0400 Subject: [PATCH] test: Add failing test for 1.10.0 (fixed in 1.10.1) --- examples/empty.csv | 1 + tests/test_table/test_from_csv.py | 8 ++++++++ 2 files changed, 9 insertions(+) create mode 100644 examples/empty.csv diff --git a/examples/empty.csv b/examples/empty.csv new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/examples/empty.csv @@ -0,0 +1 @@ + diff --git a/tests/test_table/test_from_csv.py b/tests/test_table/test_from_csv.py index d4cbc693..c2f0fbf7 100644 --- a/tests/test_table/test_from_csv.py +++ b/tests/test_table/test_from_csv.py @@ -187,3 +187,11 @@ def test_from_csv_row_limit_too_high(self): self.assertColumnTypes(table2, [Number, Text, Boolean, Date, DateTime, TimeDelta]) self.assertRows(table2, table1.rows) + + def test_from_csv_empty(self): + table = Table.from_csv('examples/empty.csv') + + self.assertColumnNames(table, []) + self.assertColumnTypes(table, []) + + self.assertRows(table, [])