mirror of
https://github.com/virt-manager/virt-manager.git
synced 2025-02-25 18:55:27 -06:00
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:
committed by
Cole Robinson
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("-", "_"),
|
||||
|
||||
Reference in New Issue
Block a user