Skip to content

Commit a9f59ef

Browse files
committed
replace clitest naming method with lambda function
1 parent 8078449 commit a9f59ef

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

cpplint_clitest.py

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -176,18 +176,14 @@ class TestNoRepoSignature(TemporaryFolderClassSetup):
176176
def get_extra_command_args(self, cwd):
177177
return f" --repository {self._root} "
178178

179-
def _test_name_func(self, _, x):
180-
del self
181-
return f"test{x.args[0].capitalize()}Sample-{x.args[1]}"
182-
183179
@parameterized.expand(
184180
[
185181
(folder, case[:-4])
186182
for folder in ["chromium", "vlc", "silly", "boost", "protobuf", "codelite", "v8"]
187183
for case in os.listdir(f"./samples/{folder}-sample")
188184
if case.endswith(".def")
189185
],
190-
name_func=_test_name_func,
186+
name_func=lambda fun, _, x: f"test{x.args[0].capitalize()}Sample-{x.args[1]}",
191187
)
192188
@pytest.mark.timeout(180)
193189
def testSamples(self, folder, case):

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy