Skip to content

Commit db54531

Browse files
TrottMylesBorins
authored andcommitted
test: remove Files: comment processing from Python test runner
We don't use any Files: comments in our tests so remove the Python code for it from test/testpy/__init__.py. PR-URL: #25183 Reviewed-By: Richard Lau <riclau@uk.ibm.com> Reviewed-By: Michaël Zasso <targos@protonmail.com> Reviewed-By: Luigi Pinca <luigipinca@gmail.com> Reviewed-By: Trivikram Kamat <trivikr.dev@gmail.com>
1 parent a28cae0 commit db54531

File tree

1 file changed

+0
-7
lines changed

1 file changed

+0
-7
lines changed

test/testpy/__init__.py

-7
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@
3838

3939

4040
FLAGS_PATTERN = re.compile(r"//\s+Flags:(.*)")
41-
FILES_PATTERN = re.compile(r"//\s+Files:(.*)")
4241

4342

4443
class SimpleTestCase(test.TestCase):
@@ -87,12 +86,6 @@ def GetCommand(self):
8786
print(': Skipping as node was compiled without crypto support')
8887
else:
8988
result += flags
90-
files_match = FILES_PATTERN.search(source);
91-
additional_files = []
92-
if files_match:
93-
additional_files += files_match.group(1).strip().split()
94-
for a_file in additional_files:
95-
result.append(join(dirname(self.config.root), '..', a_file))
9689

9790
if self.additional_flags:
9891
result += self.additional_flags

0 commit comments

Comments
 (0)