summaryrefslogtreecommitdiffstats
path: root/testcases/functest_utils.py
diff options
context:
space:
mode:
Diffstat (limited to 'testcases/functest_utils.py')
-rw-r--r--testcases/functest_utils.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/testcases/functest_utils.py b/testcases/functest_utils.py
index 00a7b3054..88c00858e 100644
--- a/testcases/functest_utils.py
+++ b/testcases/functest_utils.py
@@ -16,6 +16,7 @@ import subprocess
import sys
import requests
import json
+import shutil
from git import Repo
@@ -526,7 +527,7 @@ def download_url(url, dest_path):
return False
with open(dest, 'wb') as f:
- f.write(response.read())
+ shutil.copyfileobj(response, f)
return True