A feature-rich command-line audio/video downloader
Fix 2.6 nosetests
Philipp Hagemeister8af4ed7b4fb2
diff --git a/test/gentests.py b/test/gentests.pyindex da4e3c2f68..6f82ae8fa6 100755--- a/test/gentests.py+++ b/test/gentests.py@@ -52,13 +52,14 @@ try:except AttributeError: # Python 2.6def _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_wfuncreturn resfunc_skip = lambda *args, **kwargs: _skip_unless(False, *args, **kwargs)diff --git a/test/test_download.py b/test/test_download.pyindex 0072d4aabd..00b9a487bc 100644--- a/test/test_download.py+++ b/test/test_download.py@@ -38,13 +38,14 @@ try:except AttributeError: # Python 2.6def _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_wfuncreturn resfunc_skip = lambda *args, **kwargs: _skip_unless(False, *args, **kwargs)