X-Git-Url: http://git.bitcoin.ninja/index.cgi?a=blobdiff_plain;f=test%2Fgentests.py;h=6f82ae8fa61f621235cc83561b55ddf8b9fbb9ed;hb=8af4ed7b4fb20190ec72e9ab6347e99deabe9bce;hp=da4e3c2f68d4dbcf7f1f420304e8acc58356c509;hpb=743b28ce1155df348bbb828fcb316d57c8704328;p=youtube-dl diff --git a/test/gentests.py b/test/gentests.py index da4e3c2f6..6f82ae8fa 100755 --- a/test/gentests.py +++ b/test/gentests.py @@ -52,13 +52,14 @@ try: except AttributeError: # Python 2.6 def _skip_unless(cond, reason='No reason given'): def resfunc(f): - def wfunc(*args, **kwargs): + # Start the function name with test to appease nosetests-2.6 + def test_wfunc(*args, **kwargs): if cond: return f(*args, **kwargs) else: print('Skipped test') return - return wfunc + return test_wfunc return resfunc _skip = lambda *args, **kwargs: _skip_unless(False, *args, **kwargs)