From 1faf4ba2fad759f9d0652853f0bf31a447563c16 Mon Sep 17 00:00:00 2001 From: ChenXin Date: Fri, 16 Aug 2019 18:48:38 +0800 Subject: [PATCH] delete a out-date test case --- test/io/test_dataset_loader.py | 28 ++++++++++++++-------------- 1 file changed, 14 insertions(+), 14 deletions(-) diff --git a/test/io/test_dataset_loader.py b/test/io/test_dataset_loader.py index 492545f6..6fb8e4f7 100644 --- a/test/io/test_dataset_loader.py +++ b/test/io/test_dataset_loader.py @@ -61,17 +61,17 @@ class TestDatasetLoader(unittest.TestCase): print(info.datasets) os.remove(train), os.remove(test) - def test_import(self): - import fastNLP - from fastNLP.io import SNLILoader - ds = SNLILoader().process('test/data_for_tests/sample_snli.jsonl', to_lower=True, - get_index=True, seq_len_type='seq_len', extra_split=['-']) - assert 'train' in ds.datasets - assert len(ds.datasets) == 1 - assert len(ds.datasets['train']) == 3 - - ds = SNLILoader().process('test/data_for_tests/sample_snli.jsonl', to_lower=True, - get_index=True, seq_len_type='seq_len') - assert 'train' in ds.datasets - assert len(ds.datasets) == 1 - assert len(ds.datasets['train']) == 3 + # def test_import(self): + # import fastNLP + # from fastNLP.io import SNLILoader + # ds = SNLILoader().process('test/data_for_tests/sample_snli.jsonl', to_lower=True, + # get_index=True, seq_len_type='seq_len', extra_split=['-']) + # assert 'train' in ds.datasets + # assert len(ds.datasets) == 1 + # assert len(ds.datasets['train']) == 3 + # + # ds = SNLILoader().process('test/data_for_tests/sample_snli.jsonl', to_lower=True, + # get_index=True, seq_len_type='seq_len') + # assert 'train' in ds.datasets + # assert len(ds.datasets) == 1 + # assert len(ds.datasets['train']) == 3