test_urls: simplify the sorting
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
This commit is contained in:
parent
b574beb668
commit
6476a6a489
|
@ -276,10 +276,7 @@ def _make_tests():
|
|||
vals.get("kernelregex", None))
|
||||
urls[d.name] = d
|
||||
|
||||
keys = list(urls.keys())
|
||||
keys.sort()
|
||||
for key in keys:
|
||||
testdata = urls[key]
|
||||
for key, testdata in sorted(urls.items()):
|
||||
def _make_wrapper(d):
|
||||
return lambda _self: _testURLWrapper(d)
|
||||
setattr(URLTests, "testURL%s" % key.replace("-", "_"),
|
||||
|
|
Loading…
Reference in New Issue