0
0
Fork 0
mirror of https://github.com/yt-dlp/yt-dlp.git synced 2024-11-16 01:25:06 +00:00

Use str every time

This commit is contained in:
Philipp Hagemeister 2013-06-27 19:43:43 +02:00
parent 2eb88d953f
commit 41beccbab0

View file

@ -168,7 +168,7 @@ def _hook(status):
tname = 'test_' + str(test_case['name']) tname = 'test_' + str(test_case['name'])
i = 1 i = 1
while hasattr(TestDownload, tname): while hasattr(TestDownload, tname):
tname = 'test_' + test_case['name'] + '_' + str(i) tname = 'test_' + str(test_case['name']) + '_' + str(i)
i += 1 i += 1
test_method.__name__ = tname test_method.__name__ = tname
setattr(TestDownload, test_method.__name__, test_method) setattr(TestDownload, test_method.__name__, test_method)