summaryrefslogtreecommitdiff
path: root/tests/test_urls.py
diff options
context:
space:
mode:
authorMarc Hartmayer <mhartmay@linux.ibm.com>2018-12-18 14:44:51 +0100
committerCole Robinson <crobinso@redhat.com>2019-01-07 14:46:00 -0500
commit6476a6a4890ad07763a26711184c4d80c5ff7a74 (patch)
tree435186f7b55b646115c258008cd69f79e69462b8 /tests/test_urls.py
parentb574beb66844df506741097989f5159539e6e41d (diff)
downloadvirt-manager-6476a6a4890ad07763a26711184c4d80c5ff7a74.tar.gz
test_urls: simplify the sorting
Signed-off-by: Marc Hartmayer <mhartmay@linux.ibm.com> Reviewed-by: Boris Fiuczynski <fiuczy@linux.ibm.com>
Diffstat (limited to 'tests/test_urls.py')
-rw-r--r--tests/test_urls.py5
1 files changed, 1 insertions, 4 deletions
diff --git a/tests/test_urls.py b/tests/test_urls.py
index 82cd72f8..485b67a4 100644
--- a/tests/test_urls.py
+++ b/tests/test_urls.py
@@ -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("-", "_"),