tests: Fix test_urls after pytest conversion

Signed-off-by: Cole Robinson <crobinso@redhat.com>
This commit is contained in:
Cole Robinson 2020-09-30 16:55:13 -04:00
parent 3b96c32c49
commit af63df9793

View File

@ -234,7 +234,7 @@ def _make_tests():
for key, testdata in sorted(urls.items()): for key, testdata in sorted(urls.items()):
def _make_wrapper(d): def _make_wrapper(d):
return lambda _self: _testURL(d) return lambda: _testURL(d)
methodname = "test_URL%s" % key.replace("-", "_") methodname = "test_URL%s" % key.replace("-", "_")
globals()[methodname] = _make_wrapper(testdata) globals()[methodname] = _make_wrapper(testdata)