projects
/
youtube-dl
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix 2.6 nosetests
[youtube-dl]
/
test
/
test_download.py
diff --git
a/test/test_download.py
b/test/test_download.py
index 0072d4aabddafbde55ba6a1142e8e47ac6ba8dcc..00b9a487bc6acee80216d1328bdf70ef5a1e9dc4 100644
(file)
--- a/
test/test_download.py
+++ b/
test/test_download.py
@@
-38,13
+38,14
@@
try:
except AttributeError: # Python 2.6
def _skip_unless(cond, reason='No reason given'):
def resfunc(f):
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
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)
return resfunc
_skip = lambda *args, **kwargs: _skip_unless(False, *args, **kwargs)