Skip to content

Commit fe1823d

Browse files
maclover7targos
authored andcommitted
test: remove custom AsyncHooksTestConfiguration
Has the same behavior as `ParallelTestConfiguration` PR-URL: #22008 Reviewed-By: Rich Trott <[email protected]> Reviewed-By: Ruben Bridgewater <[email protected]>
1 parent 4510ca3 commit fe1823d

File tree

2 files changed

+1
-13
lines changed

2 files changed

+1
-13
lines changed

test/async-hooks/testcfg.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,4 @@
33
import testpy
44

55
def GetConfiguration(context, root):
6-
return testpy.AsyncHooksTestConfiguration(context, root, 'async-hooks')
6+
return testpy.ParallelTestConfiguration(context, root, 'async-hooks')

test/testpy/__init__.py

-12
Original file line numberDiff line numberDiff line change
@@ -165,18 +165,6 @@ def ListTests(self, current_path, path, arch, mode):
165165
SimpleTestCase(test, file_path, arch, mode, self.context, self, self.additional_flags))
166166
return result
167167

168-
class AsyncHooksTestConfiguration(SimpleTestConfiguration):
169-
def __init__(self, context, root, section, additional=None):
170-
super(AsyncHooksTestConfiguration, self).__init__(context, root, section,
171-
additional)
172-
173-
def ListTests(self, current_path, path, arch, mode):
174-
result = super(AsyncHooksTestConfiguration, self).ListTests(
175-
current_path, path, arch, mode)
176-
for test in result:
177-
test.parallel = True
178-
return result
179-
180168
class AbortTestConfiguration(SimpleTestConfiguration):
181169
def __init__(self, context, root, section, additional=None):
182170
super(AbortTestConfiguration, self).__init__(context, root, section,

0 commit comments

Comments
 (0)