Browse Source

Remove .part files before and after tests

rtmp_test
Philipp Hagemeister 12 years ago
parent
commit
3a648b209c
1 changed files with 2 additions and 0 deletions
  1. +2
    -0
      test/test_download.py

+ 2
- 0
test/test_download.py View File

@ -85,6 +85,7 @@ def generator(test_case):
test_cases = test_case.get('playlist', [test_case]) test_cases = test_case.get('playlist', [test_case])
for tc in test_cases: for tc in test_cases:
_try_rm(tc['file']) _try_rm(tc['file'])
_try_rm(tc['file'] + '.part')
_try_rm(tc['file'] + '.info.json') _try_rm(tc['file'] + '.info.json')
try: try:
fd.download([test_case['url']]) fd.download([test_case['url']])
@ -107,6 +108,7 @@ def generator(test_case):
finally: finally:
for tc in test_cases: for tc in test_cases:
_try_rm(tc['file']) _try_rm(tc['file'])
_try_rm(tc['file'] + '.part')
_try_rm(tc['file'] + '.info.json') _try_rm(tc['file'] + '.info.json')
return test_template return test_template


Loading…
Cancel
Save