projects
/
youtube-dl
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5c892b0
)
Simplify test parameter initialization
author
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Jan 2013 18:34:54 +0000
(19:34 +0100)
committer
Philipp Hagemeister
<phihag@phihag.de>
Tue, 1 Jan 2013 18:34:54 +0000
(19:34 +0100)
test/test_download.py
patch
|
blob
|
history
diff --git
a/test/test_download.py
b/test/test_download.py
index 128ff9ae4fb7364a3f1ce0f77d4e6fa3724d85ab..8b9b833735990ce2655fa7467488d95951f079ae 100644
(file)
--- a/
test/test_download.py
+++ b/
test/test_download.py
@@
-74,9
+74,8
@@
def generator(test_case):
print('Skipping: {0}'.format(test_case['skip']))
return
- params = dict(self.parameters) # Duplicate it locally
- for p in test_case.get('params', {}):
- params[p] = test_case['params'][p]
+ params = self.parameters.copy()
+ params.update(test_case.get('params', {}))
fd = FileDownloader(params)
fd.add_info_extractor(ie())