summary refs log tree commit diff
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-01 19:34:54 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-01 19:34:54 +0100
commitc073e35b1ed738461eba5cc539923d8fa539b03a (patch)
treea46c91e5b81b64ddaf22761e0bdb839664b05c2a
parent5c892b0ba963713bd75d1c85698a660d9bc4bb05 (diff)
downloadyoutube-dl-c073e35b1ed738461eba5cc539923d8fa539b03a.tar.gz
youtube-dl-c073e35b1ed738461eba5cc539923d8fa539b03a.tar.xz
youtube-dl-c073e35b1ed738461eba5cc539923d8fa539b03a.zip
Simplify test parameter initialization
-rw-r--r--test/test_download.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 128ff9ae4..8b9b83373 100644
--- 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())