diff --git a/tests/test_tables.py b/tests/test_tables.py index f0abfbd7f..a440330be 100644 --- a/tests/test_tables.py +++ b/tests/test_tables.py @@ -1157,7 +1157,6 @@ def test_remove_column_type(table): # Create # ########## - def test_empty(): t = Table(['letter', 'count', 'points']) assert_equal(t, """ @@ -1209,6 +1208,10 @@ def test_from_records(): c | 3 | 2 z | 1 | 10 """) + +def test_from_records_none(): + t = Table.from_records(None) + assert_equal(t, '') @pytest.mark.filterwarnings('ignore::FutureWarning') @@ -1226,6 +1229,10 @@ def test_from_columns_dict(): c | 3 | 2 z | 1 | 10 """) + +def test_column_labels(): + with pytest.warns(FutureWarning): + t = Table().column_labels #############