Permalink
Browse files

tests: Improve bytes python3 compatibility

  • Loading branch information...
tbabej committed Jan 2, 2019
1 parent 7aac91f commit 9b690fca57d95c4054bc1fc93531917e59af58c4
Showing with 1 addition and 1 deletion.
  1. +1 −1 test/basetest/utils.py
@@ -464,7 +464,7 @@ def rmtemp(name):
pass

f = tempfile.NamedTemporaryFile(delete=False)
f.write(data)
f.write(data.encode('utf-8') if not isinstance(data, bytes) else data)
f.close()

# Ensure removal at end of python session

0 comments on commit 9b690fc

Please sign in to comment.