Recognise AllXxxAbs as abstract in unittest

This commit is contained in:
Inari Listenmaa
2022-01-19 12:16:02 +08:00
committed by Meowyam
parent 83a59f2757
commit 0c52f9cbed

View File

@@ -92,7 +92,7 @@ def collect_testcases(testlines):
elif ':' in line: elif ':' in line:
lang, sentence = stripstrings(line.split(':', 1)) lang, sentence = stripstrings(line.split(':', 1))
langfile = importfile(linenr, lang) langfile = importfile(linenr, lang)
is_tree = '/abstract/' in langfile is_tree = ('/abstract/' in langfile) or 'Abs' in langfile
test.append((is_tree, linenr, lang, langfile, sentence)) test.append((is_tree, linenr, lang, langfile, sentence))
else: else:
error(linenr, "Ill-formatted line in test file:", line) error(linenr, "Ill-formatted line in test file:", line)