Verified Commit bc7abead authored by c's avatar c
Browse files

TorNet: replace for loop with list comprehension

seems easier to read
parent c2fa01fe
......@@ -2540,13 +2540,11 @@ def ConfigureNodes(nodelist):
network._dfltEnv['hasbridgeauth'] = True
def getTests():
tests = []
chutney_path = get_absolute_chutney_path()
chutney_tests_path = chutney_path / "scripts" / "chutney_tests"
for x in chutney_tests_path.glob("*.py"):
if not x.startswith("_"):
return tests
return [ for test in chutney_tests_path.glob("*.py")
if not"_")]
def usage(network):
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment