about summary refs log tree commit diff
path: root/test/test_download.py
diff options
context:
space:
mode:
authorPhilipp Hagemeister <phihag@phihag.de>2013-01-01 21:15:52 +0100
committerPhilipp Hagemeister <phihag@phihag.de>2013-01-01 21:16:03 +0100
commit3a648b209c11ea76ae72ef5bc6c02550cdd3ba0f (patch)
treee06b6beb21c9ddbd529dbd6376d0aaa4f746d590 /test/test_download.py
parentc80f0a417aad9c2d45cc7baf012eaa3d5d5199e7 (diff)
downloadyoutube-dl-3a648b209c11ea76ae72ef5bc6c02550cdd3ba0f.tar.gz
youtube-dl-3a648b209c11ea76ae72ef5bc6c02550cdd3ba0f.tar.xz
youtube-dl-3a648b209c11ea76ae72ef5bc6c02550cdd3ba0f.zip
Remove .part files before and after tests
Diffstat (limited to 'test/test_download.py')
-rw-r--r--test/test_download.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/test/test_download.py b/test/test_download.py
index 4a59f6638..40d596fdf 100644
--- a/test/test_download.py
+++ b/test/test_download.py
@@ -85,6 +85,7 @@ def generator(test_case):
         test_cases = test_case.get('playlist', [test_case])
         for tc in test_cases:
             _try_rm(tc['file'])
+            _try_rm(tc['file'] + '.part')
             _try_rm(tc['file'] + '.info.json')
         try:
             fd.download([test_case['url']])
@@ -107,6 +108,7 @@ def generator(test_case):
         finally:
             for tc in test_cases:
                 _try_rm(tc['file'])
+                _try_rm(tc['file'] + '.part')
                 _try_rm(tc['file'] + '.info.json')
 
     return test_template