From db54531c8d06fb9b3e21815bdda8077012dd76ac Mon Sep 17 00:00:00 2001 From: Rich Trott Date: Fri, 21 Dec 2018 19:04:13 -0800 Subject: [PATCH] test: remove Files: comment processing from Python test runner MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We don't use any Files: comments in our tests so remove the Python code for it from test/testpy/__init__.py. PR-URL: https://github.com/nodejs/node/pull/25183 Reviewed-By: Richard Lau Reviewed-By: Michaƫl Zasso Reviewed-By: Luigi Pinca Reviewed-By: Trivikram Kamat --- test/testpy/__init__.py | 7 ------- 1 file changed, 7 deletions(-) diff --git a/test/testpy/__init__.py b/test/testpy/__init__.py index 2bd976bbbdca5c..332284ce4cfb4e 100644 --- a/test/testpy/__init__.py +++ b/test/testpy/__init__.py @@ -38,7 +38,6 @@ FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)") -FILES_PATTERN = re.compile(r"//\s+Files:(.*)") class SimpleTestCase(test.TestCase): @@ -87,12 +86,6 @@ def GetCommand(self): print(': Skipping as node was compiled without crypto support') else: result += flags - files_match = FILES_PATTERN.search(source); - additional_files = [] - if files_match: - additional_files += files_match.group(1).strip().split() - for a_file in additional_files: - result.append(join(dirname(self.config.root), '..', a_file)) if self.additional_flags: result += self.additional_flags