tests: Read binary file in add_log_file() for python3
python3 requires sqlite3.Binary() input to be bytes instead of str, so open the files for binary mode reading. Signed-off-by: Jouni Malinen <j@w1.fi>
This commit is contained in:
parent
2a79a8ce14
commit
6395b9eb3e
1 changed files with 1 additions and 1 deletions
|
@ -84,7 +84,7 @@ def add_log_file(conn, test, run, type, path):
|
|||
if not os.path.exists(path):
|
||||
return
|
||||
contents = None
|
||||
with open(path, 'r') as f:
|
||||
with open(path, 'rb') as f:
|
||||
contents = f.read()
|
||||
if contents is None:
|
||||
return
|
||||
|
|
Loading…
Reference in a new issue