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:
Marc Hartmayer 2018-12-18 14:44:51 +01:00 committed by Cole Robinson
parent b574beb668
commit 6476a6a489
1 changed files with 1 additions and 4 deletions

View File

@ -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("-", "_"),