Skip to content

Commit d2bab10

Browse files
committed
[vstest]: use BytesIO for file operations
this is another py3 fix Signed-off-by: Guohan Lu <lguohan@gmail.com>
1 parent 982c9a3 commit d2bab10

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

tests/conftest.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -421,7 +421,7 @@ def runcmd(self, cmd):
421421
return (exitcode, out)
422422

423423
def copy_file(self, path, filename):
424-
tarstr = io.StringIO()
424+
tarstr = io.BytesIO()
425425
tar = tarfile.open(fileobj=tarstr, mode="w")
426426
tar.add(filename, os.path.basename(filename))
427427
tar.close()

0 commit comments

Comments
 (0)