From 0c52f9cbedabc6080a4acec4972a1b3efc82555a Mon Sep 17 00:00:00 2001 From: Inari Listenmaa Date: Wed, 19 Jan 2022 12:16:02 +0800 Subject: [PATCH] Recognise AllXxxAbs as abstract in unittest --- unittest/unittest.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unittest/unittest.py b/unittest/unittest.py index b7e8e4784..c78a233a6 100644 --- a/unittest/unittest.py +++ b/unittest/unittest.py @@ -92,7 +92,7 @@ def collect_testcases(testlines): elif ':' in line: lang, sentence = stripstrings(line.split(':', 1)) 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)) else: error(linenr, "Ill-formatted line in test file:", line)