Permalink
Browse files

Simplify test parameter initialization

  • Loading branch information...
1 parent 5c892b0 commit c073e35b1ed738461eba5cc539923d8fa539b03a @phihag phihag committed Jan 1, 2013
Showing with 2 additions and 3 deletions.
  1. +2 −3 test/test_download.py
View
@@ -74,9 +74,8 @@ def test_template(self):
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())

0 comments on commit c073e35

Please sign in to comment.