Skip to content

Commit

Permalink
Added encoding in write
Browse files Browse the repository at this point in the history
  • Loading branch information
Paul Nilsson committed Feb 12, 2024
1 parent de6a66c commit 3db5dcd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion pilot/test/test_copytools_mv.py
Original file line number Diff line number Diff line change
Expand Up @@ -119,7 +119,7 @@ def setUp(self):
_data = [random.randint(0, 255) for _ in range(0, filesize)]
fname = os.path.join(self.tmp_src_dir, fname)
with open(fname, "wb") as new_file:
new_file.write(str(_data))
new_file.write(str(_data).encode('utf-8'))

# add to list
#self.filelist.append({'name': fname, 'source': self.tmp_src_dir, 'destination': self.tmp_dst_dir})
Expand Down

0 comments on commit 3db5dcd

Please sign in to comment.