Skip to content
Permalink
Browse files

tests: Improve bytes python3 compatibility

  • Loading branch information...
tbabej authored and pbeckingham committed Jan 2, 2019
1 parent b834782 commit a4ce40add4ee4bfd07d81a8de6e206b67c1c498e
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 a4ce40a

Please sign in to comment.
You can’t perform that action at this time.