Skip to content

Commit 34ccda8

Browse files
[FBcode->GH] 20210309 Fbsync merge into master: fix lint check with jsonl file extension
1 parent ff40bb5 commit 34ccda8

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed
File renamed without changes.

test/common/cache_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ def generate_data_cache():
2121
if os.path.exists(CACHE_STATUS_FILE):
2222
return
2323

24-
raw_data_info = load_params('raw_datasets.json')
24+
raw_data_info = load_params('raw_datasets.jsonl')
2525
cache_status = {}
2626
for info in raw_data_info:
2727
info = info.args[0]

test/data/test_builtin_datasets.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def test_raw_ag_news(self):
156156
del train_iter, test_iter
157157

158158
@parameterized.expand(
159-
load_params('raw_datasets.json'),
159+
load_params('raw_datasets.jsonl'),
160160
name_func=_raw_text_custom_name_func)
161161
def test_raw_text_name_property(self, info):
162162
dataset_name = info['dataset_name']
@@ -170,7 +170,7 @@ def test_raw_text_name_property(self, info):
170170
self.assertEqual(str(data_iter), dataset_name)
171171

172172
@parameterized.expand(
173-
load_params('raw_datasets.json'),
173+
load_params('raw_datasets.jsonl'),
174174
name_func=_raw_text_custom_name_func)
175175
def test_raw_text_classification(self, info):
176176
dataset_name = info['dataset_name']

0 commit comments

Comments
 (0)